Hello,
I did the notebook correctly and was graded 100/100. But upon downloading to my own laptop to run, there are issues from the UNIT Test section where AssertionError: Error in test is shown.
For example, one of the output is:
Test failed at index 1
Expected value
[‘SlicingOpLambda’, (None, 90), 0]
does not match the input value:
[‘TensorFlowOpLayer’, [(None, 90)], 0]
AssertionError Traceback (most recent call last)
in
1 # UNIT TEST
2 output = summary(model)
----> 3 comparator(output, djmodel_out)
~/Desktop/Python/Deep Learning Specialisation/5-Sequence Models/test_utils2.py in comparator(learner, instructor)
26 “\n\n does not match the input value: \n\n”,
27 colored(f"{a}", “red”))
—> 28 raise AssertionError(“Error in test”)
29 print(colored(“All tests passed!”, “green”))
30
AssertionError: Error in test
Test failed at index 5
Expected value
[‘TFOpLambda’, (None,), 0]
does not match the input value:
[‘TensorFlowOpLayer’, [(None,)], 0]
AssertionError Traceback (most recent call last)
in
1 # UNIT TEST
2 inference_summary = summary(inference_model)
----> 3 comparator(inference_summary, music_inference_model_out)
~/Desktop/Python/Deep Learning Specialisation/5-Sequence Models/test_utils2.py in comparator(learner, instructor)
26 “\n\n does not match the input value: \n\n”,
27 colored(f"{a}", “red”))
—> 28 raise AssertionError(“Error in test”)
29 print(colored(“All tests passed!”, “green”))
30
AssertionError: Error in test
This cause the final np.argmax(results[12]) to differ alot from the original answers. Please help