World's Best AI Learning Platform with profoundly Demanding Certification Programs
Designed by IITian's, only for AI Learners.
Download our e-book of Introduction To Python
4 (4,001 Ratings)
218 Learners
Anmol Sharma
6 months ago
from sklearn import SVM
clf = SVM.SVC() #for classification
reg = SVM.SVR() #for regression
clf.fit(training_data, training_label)
predict_value = clf.predict(test_data)
predict_value = clf.score(test_label, predict_value)