Question: Use Sklearn.svm . SVC with linear kernel to classify the dataset below. Change parameter C in the range 0 . 0 1 , 0 .

Use Sklearn.svm.SVC with linear kernel to classify the dataset below. Change parameter C in the range 0.01,0.1,1,10,100 and see its effect on hyperplane and support vectors.
from sklearn. datasets import make_blobs
x,y= make_blobs (n_samples =100,nf eatures =2, centers =2, cluster_std =0.7, random_state =0)
import matplotlib. pyplot as plt
#p1t. scatter )=(y
#scale data
from sklearn. preprocessing import StandardScaler
scale = StandardScaler ()
scale. fit (x)
x= scale. transform (x)
plt.)=(y
plt. Xlabel ('feature 1')
p1t. ylabel ('feature 2')
plt. title(' scaled data')
 Use Sklearn.svm.SVC with linear kernel to classify the dataset below. Change

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