C2M4_Assignment

Verification Run is OK, but this:

unittests.exercise_4(run_training, ChestXRayDataModule, ChestXRayClassifier)

Returns:

Failed test case: Your function failed to execute during the test. Error: [Errno 2] No such file or directory: ‘dummy_weights.pth’.
Expected: None
Got: None

Anybody else run into the similar issue?

Sorry, but what do you mean “Verification Run is OK”? The failure you show is from running a test cell in the notebook itself. Are you sure you ran all the previous cells in order? Try this and see if it changes the behavior:

Kernel -> Restart and Clear Outputs
Cell -> Run All

If it still fails with that “File not found” error, then it’s time to look at the actual test code to understand what it is doing.

Found the error, I made mistake in the very definition of class ChestXRayClassifier - incorrect def. of self.model (path parameter).

Even with that mistake, unittests.exercise_2(ChestXRayClassifier) tests passed, so I did not look there at first.

Case closed.

1 Like