-
Notifications
You must be signed in to change notification settings - Fork 0
/
classifiers.py
26 lines (25 loc) · 1.3 KB
/
classifiers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB
from sklearn.naive_bayes import BernoulliNB
from sklearn.tree import DecisionTreeClassifier
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import GradientBoostingClassifier
from xgboost import XGBClassifier
classifier_dict = {'Logistic':LogisticRegression,
'SVC': SVC,
'KNeighborsClassifier':KNeighborsClassifier,
'GaussianNB':GaussianNB,
'BernoulliNB':BernoulliNB,
'DecisionTreeClassifier':DecisionTreeClassifier,
'RandomForestClassifier':RandomForestClassifier,
'AdaBoostClassifier':AdaBoostClassifier,
'GradientBoostingClassifier':GradientBoostingClassifier,
'LinearDiscriminantAnalysis':LinearDiscriminantAnalysis,
'QuadraticDiscriminantAnalysis':QuadraticDiscriminantAnalysis,
'XGBClassifier':XGBClassifier
}