There was a problem compiling the code from your notebook. Details: operands could not be broadcast together with shapes (351,) (361,)

The code is working and getting the right answer,but the grades are there with this messgae:There was a problem compiling the code from your notebook. Details:
operands could not be broadcast together with shapes (351,) (361,)

1 Like

Share the image your grade output is showing.

Hello Moataz,

I only told you to share grader output, not codes. it is against community guidelines.

Can you try a different browser and run the assignment. Your codes are correct, kindly remove the image as it contains codes.

Just be sure or make sure you have run all the codes before running the train_val_split.

I did change the browser,but still the same issue happens

1 Like

Try re-doing the assignment with a fresh copy of the assignment.

First save a copy of this assignment in your computer.
Then delete the assignment file in the coursera environment by clicking on file.
You will notice a 404 error on the the screen.
then get a fresh copy by clicking on the help === then rebooting. Click help again, then update lab and then Get the latest version.

If issue still persist let me know.

Regards
DP

I already did this step when i first got this problem because I thought I deleted or edited anything by mistake but now after working on a new lab with the latest version, i still got the problem

1 Like

can you send me the download notebook via personal DM. Click on my name and then message.