(self, train_file, max_len=2048, sample=-1, seed=0, category="", dedup=False)
| 353 | |
| 354 | class SidDataset(CSVBaseDataset): |
| 355 | def __init__(self, train_file, max_len=2048, sample=-1, seed=0, category="", dedup=False): |
| 356 | super().__init__(train_file, sample, seed, max_len, category, dedup, tokenizer=None, test=False) |
| 357 | |
| 358 | self.prompt2history = {} |
| 359 | self.history2target = {} |
| 360 | self.get_inputs() |
| 361 | |
| 362 | def get_history(self, row): |
| 363 | row['history_item_sid'] = eval(row['history_item_sid']) |
nothing calls this directly
no test coverage detected