了解模型預測
在這個練習中,你將為訓練集與測試集中的所有案例預測並視覺化離職機率。
模型(final_log)以及 train_set 和 test_set 資料集已在你的工作區中可用。
本練習屬於課程
HR 分析:以 R 預測員工流失
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Make predictions for training dataset
prediction_train <- ___(final_log, newdata = train_set,
type = "response")
# Look at the prediction range
___