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
Get step-by-step solutions from verified subject matter experts
