Last answered:

11 Nov 2024

Posted on:

03 Nov 2024

0

Doubt possible error in Exam

Good afternoon, I believe there is an error in question 3 of the Naive Bayes course exam.

When creating model 1, following the described steps, using a train-test split with a test size of 0.3, stratify = target_variable, and random_state = 365 to replicate randomness, and then using a vectorizer and the MultinomialNB class, I obtain the result shown in the attached photo.

Therefore, I don’t get two cells with zeros, as I don’t have any chips classified by my algorithm as "caw."

thanks in advanced


1 answers ( 0 marked as helpful)
Instructor
Posted on:

11 Nov 2024

0
Hey Enrique,

Thank you for reaching out and I apologize for the delayed response. Thank you also for bringing this potential issue to our attention.

I can't immediately tell where the discrepancy comes from, the code looks correct. Could you please display the parameters of "modelo_1"? That is, provide the output of the following command:
 modelo_1.get_params()
 
Kind regards,
365 Hristina

Submit an answer