Learn R Programming

creditmodel (version 1.3.0)

pred_xgb: pred_xgb

Description

pred_xgb is for using xgboost model to predict new data.

Usage

pred_xgb(
  xgb_model = NULL,
  dat,
  x_list = NULL,
  miss_values = NULL,
  model_name = NULL,
  model_path = getwd()
)

Arguments

xgb_model

XGboost Model generated by training_model.

dat

Dataframe of new data.

x_list

Into the model variables.

miss_values

missing values.

model_name

Name of model

model_path

dir_path of model.

Value

new prob.

See Also

training_model, pred_score