datamodule_test¶
datamodule
tests.
- cneuromax.projects.classify_mnist.datamodule_test.datamodule(tmp_path)[source]¶
MNISTDataModule
fixture.- Parameters:
tmp_path (
Path
) – The temporary path for theMNISTDataModule
.- Return type:
- Returns:
A generic
MNISTDataModule
instance.
- cneuromax.projects.classify_mnist.datamodule_test.test_setup_fit(datamodule)[source]¶
Tests
setup()
#1.Verifies that
setup()
behaves correctly whenstage
is"fit"
.- Parameters:
datamodule (
MNISTDataModule
) – A genericMNISTDataModule
instance, seedatamodule()
.- Return type:
- cneuromax.projects.classify_mnist.datamodule_test.test_setup_test(datamodule)[source]¶
Tests
setup()
#2.Verifies that
setup()
behaves correctly whenstage
is"test"
.- Parameters:
datamodule (
MNISTDataModule
) – A genericMNISTDataModule
instance, seedatamodule()
.- Return type: