On my practice lab, my code is all good and passes all the tests, the autograder says nothing about it. all it says is cell 18 cant compile and grades me 0%. Below is a screenshot of the error. Also here it is in textual form:Cell #18. Can’t compile the student’s code. Error: ValueError(‘x and y must have same first dimension, but have shapes (2,) and (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2)’)
By the way, i forgot to mention this is a premade cell and not my own code. I also havent edited it.
I’ll assume you have not modified anything in the “utils.py” file.
For that plot code to fail with that error message, the most likely issue is that you have modified either X_train or y_train inside the notebook, such that they don’t agree on the number of examples in the training set.
Less likely would be a bug in the code you added to compute_gradient(), such that the weight or bias is the wrong shape after the notebook runs the gradient descent function.
Hi, thanks for the suggestions! I made absolutely sure that I didn’t alter x or y train in anyway, i even reset the lab and put in all the same code i had before, but I’m still getting the same error and a 0 from the autograder, with the same report. Also another strange issue is after refreshing the lab and putting in the exact same compute gradient code, It does not pass the first test but it does pass the second, whereas it used to pass both tests. Anyway, what further steps can i take to try to fix this issue?
Please check your personal messages for instructions.