Question: create a new svm . SVC ( ) object and assign it to the variable clf 1 a call to svm . SVC ( )

create a new svm.SVC() object and assign it to the variable clf1 a call to svm.SVC() creates a Support Vector Classifier from the svm submodule, similar to what we did in the earlier exercise on hand-written digits
call the fit method on clf1 with the x and y training data (i.e., training the model to associate x_train with y_train)
call the predict method on clf1 on the x testing data and assign the result to the variable predictions1, in order to make predictions for those inputs
call the accuracy_score function on the y testing data and the test predictions you generated and assign the result to the variable score1
print the value of score1

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 Programming Questions!