Skip to content

Commit

Permalink
remove redundant model fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
ShengKungYi committed Feb 11, 2015
1 parent 93cbc9c commit 4614cc3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion final_project/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def test_classifier(clf, dataset, feature_list, folds = 1000):

### fit the classifier using training set, and test on test set
clf.fit(features_train, labels_train)
pred = clf.predict(features_test)
predictions = clf.predict(features_test)
for prediction, truth in zip(predictions, labels_test):
if prediction == 0 and truth == 0:
Expand Down

0 comments on commit 4614cc3

Please sign in to comment.