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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started