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

Method test_normalize_weights

tests/integration/test_one_of.py:138–140  ·  view source on GitHub ↗
(self, transforms, input_weights, expected_weights)

Source from the content-addressed store, hash-verified

136
137 @parameterized.expand(TESTS)
138 def test_normalize_weights(self, transforms, input_weights, expected_weights):
139 tr = OneOf(transforms, input_weights)
140 self.assertTupleEqual(tr.weights, expected_weights)
141
142 def test_no_weights_arg(self):
143 p = OneOf((X(), Y(), X(), Y()))

Callers

nothing calls this directly

Calls 1

OneOfClass · 0.90

Tested by

no test coverage detected