Despite passing all the other unit tests and the values produced by that function always being correct, I keep getting the following error by the unit tests when trying to submit it:
Failed test case: mse has incorrect type. Expected: a subdtype of np.number, but got: <class ‘tensorflow.python.framework.ops.EagerTensor’>.
Is this an error on my part or in the unit test itself? I would assume that if the error was on my part, it would fail one of the later tests, but, again, all the other tests are fine.
I have saved the notebook and restarted the kernel several times just in case.