Skip to content

test cases should not change the global random states #1568

@wyli

Description

@wyli

the current NumpyImageTestCase2D and NumpyImageTestCase3D use create_test_image_*

im, msk = create_test_image_2d(self.im_shape[0], self.im_shape[1], 4, 20, 0, self.num_classes)
without the local random_state parameter
random_state: Optional[np.random.RandomState] = None,

the relevant unit tests therefore become dependent on each other via the global random state. this should be rectified

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions