In [ ]:
from sklearn import svm
In [ ]:
if 'features_train' not in locals() or globals():
%run ../dev/environment_setup.ipynb
In [ ]:
features_train_small = features_train[:len(features_train)/100]
labels_train_small = labels_train[:len(labels_train)/100]
In [ ]:
clf = svm.SVC(kernel='rbf', gamma=10000)
In [ ]:
train_predict("Train and Predict Data with High Gamma Value")
In [ ]:
clf = svm.SVC(kernel='rbf', gamma=1.0)
In [ ]:
train_predict("Train and Predict Data with Low Gamma Value")