campusx-official / sms-spam-classifier

End to end code for the email spam classifier project
97 stars 198 forks source link

Issue #1

Open anshu2308 opened 2 years ago

anshu2308 commented 2 years ago

Why mnb is not fitted

AbdullahKhanKakar commented 6 months ago

May be the column not in correct format that you want to fit in mnb. Means after creating vectors using TfidfVectorizer(), it returns sparse matrix, so using toarray() will convert sparse matrix into array format, that best for fitting into mnb.