Question: Write a paython code (Kaggle) for the following: Q1) Transform your dataset to TF-IDF, apply logistic regression, and plot the confusion matrix on the test

Write a paython code (Kaggle) for the following:

Q1) Transform your dataset to TF-IDF, apply logistic regression, and plot the confusion matrix on the test set .

Q2) Transform your dataset to 4-grams, apply logistic regression, and plot the confusion matrix on the test set

Q3) Combine TF-IDF and 4-grams features and apply logistic regression, and plot the confusion matrix on the test set

Q4) The employee is raising a concern about the machine learning model flagging his genuine emails as spam on occasion. Which model should we choose and would be more effective in this situation? Explain your answers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Economics Questions!