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

Method __init__

data.py:398–401  ·  view source on GitHub ↗
(self, train_file, tokenizer, max_len=2048, sample=-1, test=False, seed=0, category="", K=4, dedup=False)

Source from the content-addressed store, hash-verified

396
397class SidSFTDataset(CSVBaseDataset):
398 def __init__(self, train_file, tokenizer, max_len=2048, sample=-1, test=False, seed=0, category="", K=4, dedup=False):
399 super().__init__(train_file, sample, seed, max_len, category, dedup, tokenizer, test)
400
401 self.get_inputs()
402
403 def get_history(self, row):
404 row['history_item_sid'] = eval(row['history_item_sid'])

Callers

nothing calls this directly

Calls 2

get_inputsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected