Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
