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

Class RandTest

tests/data/test_image_dataset.py:36–46  ·  view source on GitHub ↗

randomisable transform for testing.

Source from the content-addressed store, hash-verified

34
35
36class RandTest(RandomizableTransform):
37 """
38 randomisable transform for testing.
39 """
40
41 def randomize(self, data=None):
42 self._a = self.R.random()
43
44 def __call__(self, data):
45 self.randomize()
46 return data + self._a
47
48
49class _TestCompose(Compose):

Callers 1

test_datasetMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_datasetMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…