Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Import the digit dataset from sklearn library 1 ) Split the dataset with 7 5 % allocated for the training, use logistic regression, SVM ,
Import the digit dataset from sklearn library
Split the dataset with allocated for the training, use logistic regression, SVM Random forest, and decision Tree and get the score for for each Model
Use the crossvalscore object with slots, and Measure the different scores for logistic regression, SVM Random forest, and decision Tree.
Plot the confusion Matrix for the model with the best accuracy
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