Exercise

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.

Instructions 1/2

undefined XP
    1
    2
  • Calculate the probability of turnover for all cases in train_set using final_log model.
  • Use the hist() function to plot the range of these probabilities.