1차 모델 테스트
모델 선정
1차 전처리 과정LogisticRegression
KNeighborsClassifier
GaussianNB
Perceptron
LinearSVC
SGDClassifier
DecisionTreeClassifier
RandomForestClassifier실행 결과
1번 째 모델 학습 시작-------------------
LogisticRegression
precision recall f1-score support
0 0.88 1.00 0.94 173151
1 0.00 0.00 0.00 23793
accuracy 0.88 196944
macro avg 0.44 0.50 0.47 196944
weighted avg 0.77 0.88 0.82 196944
2번 째 모델 학습 시작-------------------
KNeighborsClassifier
precision recall f1-score support
0 0.89 0.95 0.92 173151
1 0.32 0.16 0.22 23793
accuracy 0.86 196944
macro avg 0.61 0.56 0.57 196944
weighted avg 0.82 0.86 0.84 196944
3번 째 모델 학습 시작-------------------
GaussianNB
precision recall f1-score support
0 0.88 0.98 0.93 173151
1 0.15 0.03 0.05 23793
accuracy 0.86 196944
macro avg 0.52 0.50 0.49 196944
weighted avg 0.79 0.86 0.82 196944
4번 째 모델 학습 시작-------------------
Perceptron
precision recall f1-score support
0 0.88 1.00 0.94 173151
1 0.00 0.00 0.00 23793
accuracy 0.88 196944
macro avg 0.44 0.50 0.47 196944
weighted avg 0.77 0.88 0.82 196944
5번 째 모델 학습 시작-------------------
LinearSVC
precision recall f1-score support
0 0.88 1.00 0.94 173151
1 0.00 0.00 0.00 23793
accuracy 0.88 196944
macro avg 0.44 0.50 0.47 196944
weighted avg 0.77 0.88 0.82 196944
6번 째 모델 학습 시작-------------------
SGDClassifier
precision recall f1-score support
0 0.88 1.00 0.94 173151
1 0.00 0.00 0.00 23793
accuracy 0.88 196944
macro avg 0.44 0.50 0.47 196944
weighted avg 0.77 0.88 0.82 196944
7번 째 모델 학습 시작-------------------
RandomForestClassifier
precision recall f1-score support
0 0.91 0.89 0.90 173151
1 0.31 0.35 0.33 23793
accuracy 0.83 196944
macro avg 0.61 0.62 0.62 196944
weighted avg 0.84 0.83 0.83 196944
7번 째 모델 학습 시작------------------
RandomForestClassifier
precision recall f1-score support
0 0.91 0.89 0.90 173151
1 0.31 0.35 0.33 23793
accuracy 0.83 196944
macro avg 0.61 0.62 0.62 196944
weighted avg 0.84 0.83 0.83 196944결과 해석 및 회고
실행 코드
Last updated
Was this helpful?