Issue with the grading of a function which was ok after the unit tests

  • Description (include relevant info but please do not post solution code or your entire notebook) * Week 2
  • Link to the classroom item you are referring to: Gaussian Elimination | Coursera

Hello,
I have an issue. When I tested my function “def reduced_row_echelon_form” with the unit test the code seemed to be ok( I have also tried with examples and it worked). Nonetheless, when I submitted my work the function seemed to be false and I got this error “There was an error grading your submission. Details:
cannot reshape array of size 8 into shape (4,1)”
I don’t understand the issue. Can you please help me ?

1 Like

Your code does not work correctly.

The grader uses a different size of data set to test your code.
Check if you have anything hard-coded, or if you make any assumptions about the size or shape of the matrix.

3 Likes

Thank you ! it works now

2 Likes