C3W1_Assignment | Exercise 1 | get_word_frequency Function working but results are off

I’m working on the Naive Bayes Programing assignment C3w1. I have got the get_word_frequency function working, however the output numbers are different from the expected output.

Should I assume something is wrong with my code? or could this be normal?

This means it (probably) isn’t working correctly.

But I’ll do a couple of tests and report back.

1 Like

Your results are not correct. The ham and spam counts are wrong for each of the words in the dictionary.

Thanks1 I was able to figure out where I was going wrong

1 Like

Hi Ian, I ran into the same problem.
How did you manage to solve it?