C3_W1_Assignment is not grading

To be specific, make these changes in your predict_breed() function:

  • change ‘breed_0’ to 0
  • change ‘breed_1’ to 1
  • change ‘breed_2’ to 2

thank you ,it works but error turn to this

:cry:

Check your notebook, did you leave any “None” statements that you have not updated yet?

You cannot grade an incomplete notebook.

okay, I’ve changed the brees variable to (int) and mede the changes in the predict_breed() function,
but I stil receive 0 points at the end, the message shown in my grader now is:

There was a problem compiling the code from your notebook. Details:
naive_bayes_classifier() missing 2 required positional arguments: ‘word_freq’ and ‘class_freq’ .

Did you modify the function definition for naive_bayes_classifier(…)?

It should look like this:

1 Like

It worked!!! Thank you so much for your time and priceless help.

Hello there,

Do I have to solve all questions correctly to be graded for the ones I solved and matched the solutions?

I feel like I keep getting a zero just because one of the questions wasn’t solved. Although the passing rate is 80%.

What should I do?

Regards

You need to complete all of the parts of the assignment at least far enough that the grader doesn’t crash. Leaving part of the assignment incomplete will not work.

If the grader crashes (like due to an assert for an incorrect result), you will score zero.