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

Method __init__

data.py:264–280  ·  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

262class EvalD3Dataset(CSVBaseDataset):
263
264 def __init__(self, train_file, tokenizer, max_len=2048, sample=-1, test = False, seed=0, category="", K=4, dedup=False):
265 super().__init__(train_file, sample, seed, max_len, category, dedup, tokenizer, test)
266
267 self.instructs = [
268 f"Given a list of {category} the user recetenly enjoy, please write a new {category} that the user may bought",
269 f"Considering the {category} that has recently captured the user's interest, kindly create a compilation of other {category} that the user might have played prior to this.",
270 f"Based on the user's current gaming preference, please draft a list of potential {category} they may have experienced beforehand.",
271 f"Reflecting on the {category} the user has taken pleasure in recently, we request that you formulate a list of {category} that may have preceded the user's current enjoyment.",
272 f"In light of the recent gaming enjoyment expressed by the user, please assemble a list of {category} that could potentially include past titles the user has engaged with.",
273 f"Taking into account the {category} that has lately provided enjoyment to the user, please put together an inventory of {category} the user might have explored previously.",
274 f"Given the user's newfound enjoyment of a particular {category}, would you kindly generate a roster of other {category} that might resonate with their past gaming experiences?",
275 f"In response to the user's recent fondness for a specific {category}, we seek your assistance in listing possible {category} the user may have delighted in earlier.",
276 f"With respect to the {category} currently enjoyed by the user, please compile a suggestive list of {category} they may have played in the past.",
277 f"Bearing in mind the {category} that the user has recently been enthralled by, please construct a catalog of other {category} that the user potentially partook in beforehand.",
278 f"In relation to the user's recent entertainment with a given {category}, it would be appreciated if you could curate a list of {category} that might form part of the user's previous gaming history."
279 ]
280 self.get_inputs()
281
282 def generate_example_prompt(self, data_point):
283 return f"""### Example {data_point["idx"]}:

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
get_inputsMethod · 0.45

Tested by

no test coverage detected