model_gain | R Documentation |
model_gain() returns the gain curve, which is constructed from the percentage of the tested population and the cumulative proportion of successes. The graph allows evaluating the percentage of gain in the prediction of success in relation to the percentage of the tested population.
model_gain(y_test, y_test_prob)
y_test |
Values of the response variable in test set. |
y_test_prob |
Probabilities of the response variable in test set. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.