Compare and plot Cumulative Capture Rate, Gains, Lift, or Response Rate across 1 or more predictors. Optionally returns the underlying dataframe.
1 2 3 | ezr.plot_gainslift_compare(dataset, binary_target, fields,
higher_morelikely = TRUE, plot_type = "capture", return_tbl = TRUE,
y_title = NULL, plot_title = NULL)
|
dataset |
The dataset. Can be an h2o dataframe |
binary_target |
the target. Should be 0/1. |
fields |
The fields that |
higher_morelikely |
Is a higher value more likely of a value of '1'? Default is TRUE. If multiple columns are provided, it is assumed they all have the same direction. If they don't have the same direction, manipulate the data prior to using this function. |
plot_type |
Default is 'capture'. Valid values are 'capture', 'response', 'gains', or 'lift'. All of these values are cumulative. |
return_tbl |
Return the dataframe of values? |
plot_title |
= Name of plot |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.