Created
January 15, 2019 14:30
-
-
Save aSipiere/a5719c64c78dfd3a14a8746a619a9004 to your computer and use it in GitHub Desktop.
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
from sklearn.neural_network import MLPClassifier | |
from sklearn.neighbors import KNeighborsClassifier | |
from sklearn.svm import SVC | |
from sklearn.gaussian_process import GaussianProcessClassifier | |
from sklearn.gaussian_process.kernels import RBF | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier | |
from sklearn.naive_bayes import GaussianNB | |
from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis | |
classifiers = [ | |
KNeighborsClassifier(3), | |
SVC(kernel="linear", C=0.025), | |
SVC(gamma=2, C=1), | |
GaussianProcessClassifier(1.0 * RBF(1.0)), | |
DecisionTreeClassifier(max_depth=5), | |
RandomForestClassifier(max_depth=5, n_estimators=10, max_features=1), | |
MLPClassifier(alpha=1), | |
AdaBoostClassifier(), | |
GaussianNB(), | |
QuadraticDiscriminantAnalysis()] | |
names = ["Nearest Neighbors", "Linear SVM", "RBF SVM", "Gaussian Process", | |
"Decision Tree", "Random Forest", "Neural Net", "AdaBoost", | |
"Naive Bayes", "QDA"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment