자격증/빅데이터분석기사

빅데이터분석기사 실기 준비 - Day 4

uding9 2021. 11. 30. 01:45
반응형

train_test_split

- 데이터의 라벨(범주)이 불균형일 경우 stratify=y 설정

MinMaxScaler

- min 0 max 1

 

StandardScaler

- mean 0 std 1

 

Model

- model.fit(x, y) : 모델 훈련

- model.predict(x) : 모델 예측(범주)

- model.predict_proba(x) : 모델 예측(확률)

- model.score(x, y) : 모델 정확도

 

confusion_matrix

- confusion_matrix(y_test, y_pred)

 

classification_report

- classification_report(y_test, y_pred)

model.decisition_function(x)

- 샘플의  confidence score(신뢰도 점수) 예측

 

ROC

- 100에 가까울수록 좋은 모델

- 아래는 ROC 점수 계산

- ROC Curve 그리기

 

회귀모델에서 자주 사용되는 평가지표

- RMSE

- MAE

- MSE

- MAPE

- MPE

반응형