I ve been facing this issue for so long. I can’t get the certificate cause of this assignment where I get 0 grade while all exercises run just fine. This error seem to occur internally. So I don’t know how to proceed, plz help.
please post screenshot of grader submission which provides details on why your grader is failing
and the error says: ufunc ‘isfinite’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘‘safe’’
why x1 output is in rows unlike the expected output is in column?
Note that this thread was labeled as week-module-1, but your question is about the M4ML C1 Week 4 assignment. I’ve used the little “edit pencil” on the title to relabel it correctly.
The message about ufunc 'isfinite' is a bit confusing, but it’s probably just some kind of issue with incorrect datatypes. As Deepti points out, notice that your X1 output is the wrong shape. Why did you include that extra flatten().astype(float) after the dot product? The dot product by itself is sufficient. Please try that and watch what happens.
P is 5 x 5 and X0 is 5 x 1, so if you compute the dot product P \cdot X0 it will be 5 x 1, right?
With your code you end up with a 1D array of shape (5,) because of the flatten.
with what @paulinpaloalto mentioned, before checking codes, i would also want you to make sure if you are only writing codes between assigned code markers
###START AND END CODE HERE###
Between these code markers also you are suppose to only replace None with your codes.
Editing/deleting/adding anything outside or even inside can still result in failed autograder.
Also for M4ML Write codes for all the exercise and then only submit, as using grade up to here, again results in failed submission.
Let us know, if you are following as per what paul and I have mentioned.
regards
Dr. Deepti
