Created
November 9, 2016 07:27
-
-
Save jovianlin/8c0dc4b80b3d0cc369ec50d38905153d to your computer and use it in GitHub Desktop.
Best Classifier Selector
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
# Snippet for identifying the best classifier from svm, per, KNN based on their respective (accuracy) scores. | |
idx = np.argmax([svm_accuracy, per_accuracy, knn_accuracy]) | |
classifiers = {0: 'SVM', 1: 'Perceptron', 2: 'KNN'} | |
print('Best classifier is {}'.format(classifiers[idx])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment