MCPcopy
hub / github.com/facebookresearch/mmf / change_dataset

Method change_dataset

pythia/tasks/base_task.py:163–167  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 return self._preprocess_item(item)
162
163 def change_dataset(self):
164 self.dataset_choice = np.random.choice(
165 self.num_datasets, 1, p=self.dataset_probablities
166 )[0]
167 self.chosen_dataset = self.datasets[self.dataset_choice]
168
169 def verbose_dump(self, *args, **kwargs):
170 self.chosen_dataset.verbose_dump(*args, **kwargs)

Callers 2

loadMethod · 0.95
change_taskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected