The cumulative gains plot, often named <U+2018>gains plot<U+2019>, helps us answer the question: When we apply the model and select the best X deciles, what expect to target? The cumulative gains chart shows the percentage of the overall number of cases in a given category "gained" by targeting a percentage of the total number of cases.
mplot_gain(tag, score, multis = NA, target = "auto", splits = 10,
highlight = "auto", caption = NA, save = FALSE, subdir = NA,
file_name = "viz_gain.png", quiet = FALSE)
Vector. Real known label
Vector. Predicted value or model's result
Data.frame. Containing columns with each category score (only used when more than 2 categories coexist)
Value. Which is your target positive value? If set to 'auto', the target with largest mean(score) will be selected. Change the value to overwrite. Only works for binary classes
Integer. Numer of quantiles to split the data
Character or Integer. Which split should be used for the automatic conclussion in the plot? Set to "auto" for best value, "none" to turn off or the number of split.
Character. Caption to show in plot
Boolean. Save output plot into working directory
Character. Sub directory on which you wish to save the plot
Character. File name as you wish to save the plot
Boolean. Do not show message for auto target?
Other Machine Learning: ROC
,
clusterKmeans
, conf_mat
,
export_results
, gain_lift
,
h2o_automl
, h2o_predict_API
,
h2o_predict_MOJO
,
h2o_predict_binary
,
h2o_predict_model
,
h2o_selectmodel
, impute
,
iter_seeds
, model_metrics
,
mplot_conf
, mplot_cuts_error
,
mplot_cuts
, mplot_density
,
mplot_full
, mplot_importance
,
mplot_lineal
, mplot_metrics
,
mplot_response
, mplot_roc
,
mplot_splits
, msplit
Other Visualization: corr_plot
,
distr
, freqs_df
,
freqs
, mplot_conf
,
mplot_cuts_error
, mplot_cuts
,
mplot_density
, mplot_full
,
mplot_importance
,
mplot_lineal
, mplot_metrics
,
mplot_response
, mplot_roc
,
mplot_splits
, noPlot
,
plot_survey
, theme_lares2
,
theme_lares
, tree_var