C1_W2_Linear_Regression Grader giving compilation error

My notebook runs every cell successfully and prints all expected values, but when I submit it I get the following:

Cell #8. Can't compile the student's code. Error: ValueError('The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()')

The error doesn’t quite make sense to me. I don’t think any of my code attempts to cast an array to a boolean, but it sounds suspiciously like something validation code might do. I tried downloading the lab files which include some public test cases, and I am able to get those cases to pass.

I’m wondering: has anyone else been able to submit to the grader successfully for this assignment? I’m willing to accept that something might be wrong with my code, but it’s all pretty basic.

Not the same error, but my notebook also failed during submission. Maybe this can help?

1 Like

That helped a lot! That was exactly the issue I was having. Thanks