Unable to understand the error

I have been stuck with the week 2 assignment, all my test cases pass while in the code and when given for grading the row echelon form and gaussian elimination functions return with 0 marks always even after I have tried to study through them alot.

There was an error grading your submission.
Details:
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 4 and the array at index 1 has size 8

In my understanding there is an error with concatenation of sorts but I am lost with where to look other than augmented matrix function.

Please post a screen capture image of the feedback you get from the grader.

Row Echelon Form:
There was an error grading your submission. Details:
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 4 and the array at index 1 has size 8

Gaussian Elimination:
There was an error grading your submission. Details:
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 4 and the array at index 1 has size 8

Please check your personal messages for instructions.

Note that the error reported for gaussian_elimination() will probably be fixed when the row_echelon_form() function is fixed.

1 Like

please help me to, i’ve been strugling with this issue for about 2 days even tough
all passed

Please show us the output you are getting from the grader.

The size or shape of one of your matrices is not correct.

Sorry sir what should i do? Change the matrix or the syntax? :pray:

In a nutshell - neither. Fix the code so it works correctly.

Can i have the initial Script, turns out i changed many syntax in the beginning?

Please check your DMs (direct messages) for a message from me about how to proceed. You can recognize DMs in your feed by the little “envelope” icon.

1 Like

Here’s a thread about how to get a clean copy.

I have same a problem . i got " all tested passed " but still got this error “There was an error grading your submission. Details:
all the input array dimensions except for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 4 and the array at index 1 has size 8”

That probably means that you “hard-coded” some of the dimensions so that they happen to match the test case in the notebook, but the grader has a different test case.

To close the loop on the public thread, the problem was that the definition of the row_echelon_form function was changed in a way that made A and B become public variables.

For the record: it is never a good idea to change the definition of any of the functions that they give you. The grader expects the definitions to be as they were in the template code that is given to you.