로지스틱 회귀(Logistic Regression)
서포트 벡터 머신(Support Vector Machine, SVM)
나이브 베이즈 분류기(Naive Bayes Classifier)
랜덤 포레스트 분류(Random Forest)
from sklearn.linear_model import LogisticRegression
model_logistic = LogisticRegression()
from sklearn import svm
model_svm = svm.SVC()
from sklearn.ensemble import RandomForestClassifier model_random_forest = RandomForestClassifier()
from sklearn.naive_bayes import GaussianNB
로지스틱 회귀(Logistic Regression)
결정 트리(Decision Tree)
나이브 베이즈 분류기(Naive Bayes Classifier)
from sklearn.tree import DecisionTreeClassifier model_decision_tree = DecisionTreeClassifier()
from sklearn.linear_model import LogisticRegression
model_logistic = LogisticRegression(multi_class='multinomial')
from sklearn.naive_bayes import GaussianNB
model_naive_bayes = GaussianNB()
from sklearn.neighbors import KNeighborsClassifier
model_knn = KNeighborsClassifier()