MCPcopy Create free account
hub / github.com/ZinYY/TreeLoRA / __init__

Method __init__

utils/data/data_utils.py:225–229  ·  view source on GitHub ↗
(self, prompt_dataset, answer_dataset)

Source from the content-addressed store, hash-verified

223class PromptDataset(Dataset):
224
225 def __init__(self, prompt_dataset, answer_dataset) -> None:
226 super().__init__()
227 self.prompt_dataset = prompt_dataset
228 self.answer_dataset = answer_dataset
229 assert len(self.prompt_dataset) == len(self.answer_dataset)
230
231 def __len__(self):
232 return len(self.prompt_dataset)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected