MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / __init__

Method __init__

data.py:355–360  ·  view source on GitHub ↗
(self, train_file, max_len=2048, sample=-1, seed=0, category="", dedup=False)

Source from the content-addressed store, hash-verified

353
354class 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'])

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
get_inputsMethod · 0.45

Tested by

no test coverage detected