Hi,
I just passed the week 1 course 3 assignment, and the automatic grader took a point off because it was expecting the use of a specific function in the first cell, when everything else was correct:
Function "np.moveaxis" not found in Code Cell UNQ_C1.
Code Cell UNQ_C1: Function 'get_sub_volume' is correct.
Code Cell UNQ_C2: Function 'standardize' is correct.
Code Cell UNQ_C3: Function 'single_class_dice_coefficient' is correct.
Code Cell UNQ_C4: Function 'dice_coefficient' is correct.
Code Cell UNQ_C5: Function 'soft_dice_loss' is correct.
Code Cell UNQ_C6: Function 'compute_class_sens_spec' is correct.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.
I used np.transpose
to shuffle the dimensions, which is the exact same as the expected np.moveaxis
:
>>> a = np.ones((1, 2, 3))
>>> np.transpose(a, (1, 0, 2)).shape
(2, 1, 3)
All the notebook’s test cells output an All tests passed
, including the one following UNQ_C1
:
### test cell ex1 - do not modify this test cell
get_sub_volume_test(get_sub_volume)
The validation script should be changed and not look for a specific function to be used, but rather focus on shape and output.