Learn R Programming

disk.frame (version 0.1.0)

add_var_to_scorecard: Add one variable to the XGBoost scorecard

Description

Add one variable to the XGBoost scorecard

Usage

add_var_to_scorecard(df, target, feature, monotone_constraints = 0,
  prev_pred = NULL, format_fn = base::I, weight = NULL,
  save_model_fname = "")

Arguments

df

a disk.frame

target

a character string indicating the variable name of the target

feature

a character string indicating the variable name of the feature

monotone_constraints

1 higher value of feature equals higher success, -1 = the opposite, 0 = neither

prev_pred

a vector of score equal to the nrow(df) which is the previous predictions used for hot-start

format_fn

a function to transform the feature vector before fitting a model

weight

The weight of each entry

save_model_fname

the file name to save the xgboost model as