MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / randomize

Method randomize

monai/data/dataset.py:1115–1119  ·  view source on GitHub ↗
(self, data: Sequence)

Source from the content-addressed store, hash-verified

1113 super().set_data(data)
1114
1115 def randomize(self, data: Sequence) -> None:
1116 try:
1117 self.R.shuffle(data)
1118 except TypeError as e:
1119 warnings.warn(f"input data can't be shuffled in SmartCacheDataset with numpy.random.shuffle(): {e}.")
1120
1121 def _compute_data_idx(self) -> None:
1122 """

Callers 1

set_dataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected