Learn R Programming

lares (version 4.7)

gain_lift: Cumulative Gain, Lift and Response

Description

This function calculates cumulative gain, lift, and response values for a predictive score of a specific target. You can use the mplot_gain() function to custom plot results.

Usage

gain_lift(tag, score, target = "auto", splits = 10, plot = FALSE,
  quiet = FALSE)

Arguments

tag

Vector. Real known label

score

Vector. Predicted value or model's result

target

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.

splits

Integer. Numer of percentiles to split the data

plot

Boolean. Plot results?

quiet

Boolean. Do not show message for auto target?

See Also

Other Machine Learning: ROC, clusterKmeans, conf_mat, export_results, 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_gain, mplot_importance, mplot_lineal, mplot_metrics, mplot_response, mplot_roc, mplot_splits, msplit

Other Exploratory: corr_cross, corr_var, crosstab, df_str, distr, freqs_df, freqs, get_tweets, missingness, plot_cats, plot_df, plot_nums, tree_var, trendsRelated