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

Method __call__

monai/transforms/regularization/dictionary.py:115–124  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

113 return self
114
115 def __call__(self, data):
116 d = dict(data)
117 first_key: Hashable = self.first_key(d)
118 if first_key == ():
119 out: dict[Hashable, NdarrayOrTensor] = convert_to_tensor(d, track_meta=get_track_meta())
120 return out
121 self.cutout.randomize(d[first_key])
122 for k in self.key_iterator(d):
123 d[k] = self.cutout(data[k], randomize=False)
124 return d
125
126
127MixUpD = MixUpDict = MixUpd

Callers

nothing calls this directly

Calls 5

convert_to_tensorFunction · 0.90
get_track_metaFunction · 0.90
first_keyMethod · 0.80
key_iteratorMethod · 0.80
randomizeMethod · 0.45

Tested by

no test coverage detected