Last active
August 29, 2015 14:07
-
-
Save anatg/814f88b29f2afcaa5e2a to your computer and use it in GitHub Desktop.
train_model(test_data, train_data)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def train_model(test_data, train_data): | |
svm = SVC() | |
svm.fit(test_data[:, :-1], test_data[:, -1]) | |
svm.predict(train_data[:, :-1]) | |
print svm.score(train_data[:, :-1], train_data[:, -1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment