Question: uncomment and update support _ vectors # your code here from sklearn.svm import SVC # support _ vectors = [ ( 1 , 0 )

uncomment and update support_vectors
# your code here
from sklearn.svm import SVC
# support_vectors=[(1,0),(0,0)]
clf = SVC(kernel='linear', C=1e5)
clf.fit(X, y)
# Get the support vectors
support_vectors = X[clf.support_]
# Print the support vectors
print("Support vectors:", support_vectors)

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!