Guided Project: Building a Spam Filter with Naive Bayes (Typo in Classifying A New Message)

Screen Link:

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,

You are right. It does seem to be a typo for that instruction.

I would recommend use the Contact Us page in the top-right of this page and report this to them and hopefully they can update it soon. But I would suggest making sure that you provide sufficient details along with it. For example, specifying which instruction the typo occurs in would be helpful to them.