开始使用免费开始使用

Understanding the model predictions

In this exercise, you will predict and visualize the probability of turnover for all the cases in training and test datasets.

The model (final_log), and train_set and test_set datasets are available in your workspace.

本练习是课程的一部分

HR Analytics: Predicting Employee Churn in R

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Make predictions for training dataset
prediction_train <- ___(final_log, newdata = train_set, 
                            type = "response")

# Look at the prediction range
___
编辑并运行代码