There are errors in the codes for the Unsupervised Learning, Recommenders, Reinforcement Learning course programming assignments.
For the first programming assignment(clustering), two cells shows assertion error after running them and after submission it shows “Cell #5. Can’t compile the student’s code. Error: AssertionError(‘Wrongvalues’)” when I view the grade.
Since the codes can’t be edited or deleted, I’m stuck. Please how do I solve this?
You can open the public_tests.py file and read the test function that your code is failing. That should give you some clues about which condition your code doesn’t handle correctly.
That specific assert is for the values in the idx vector returned by your code in the find_closest_centroids() function, for one of the tests run by find_closest_centroids_test().