앙상블 모형 예측, 성과분석 in r

9566·2021년 6월 13일
1

데이터 분석

목록 보기
9/10
post-thumbnail

배깅, 부스팅, 랜덤포레스트

예측

pred<-predict(model, test[,-k], type="prob")
pred_1<-data.frame(pred$prob, Y=pred$class)

성과분석

pred.rf<-predict(model, test[,-k], type="class")
confusionMatrix(data=pred.rf, reference=test[,k], positive="No")
profile
안녕하세요 안녕안녕하세요 안녕하세요오오오~~

0개의 댓글