Screen Link:
https://app.dataquest.io/m/433/guided-project%3A-building-a-spam-filter-with-naive-bayes/8/classifying-a-new-message
I think there is a typo for the equation below:
p_ham_given_message *= parameters_spam[word]
Replace this line with:
p_ham_given_message *= parameters_ham[word]
Please let me know if I am wrong, thank you.
Best Regards,
Melon