I had strange results. After spending a couple of hours on Exercise 3 (predict_and_sample), I restarted the kernel and then everything passed locally. But then I received 66/100 on the grader, with this message:
Code Cell UNQ_C1: Function ‘djmodel’ is correct.
Code Cell UNQ_C2: Function ‘music_inference_model’ is correct.
"Code Cell UNQ_C3: Unexpected error (ValueError('operands could not be broadcast together with shapes (13,89) (13,90) ')) occurred during function check. We expected function predict_and_sample
to return Test 3 failed. Please check that this function is defined properly.
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."
66/100 is passing, but I want to make sure everything works. If I resubmit, I get 0/100 with this error message:
Comment line with index: UNQ_C3
is duplicated
Am I not allowed to resubmit my code after I’ve received a passing grade?
BTW, the problem I had in the UNQ_C3 function was that I only receive 2 values in my list of indices. I want to find the problem.
list(indices[12:18]) = [array([54]), array([54]), array([54]), array([54]), array([54]), array([75])]
Any suggestions would be greatly appreciated> Thanks in advance!