더북(TheBook)

5. Test 데이터로 모형의 성능 중 정분류율 구하기

>>> Y_pred = predict(model, test)
>>> mean((Y_pred >0.5) == test$default10yr)
[1] 0.9416667