predictor_xgb: Partial Dependency, xgboost predictor

Description Usage Arguments Value

Description

This function is a helper for partial dependency plots using an xgboost model. Use this as an example for the predictor argument.

Usage

1

Arguments

model

Type: unknown. The xgboost trained model.

data

Type: data.table (mandatory). The data we need to use to sample from for the partial dependency with observation.

Value

A vector of predicted values matching the right order of input.


Laurae2/Laurae documentation built on May 8, 2019, 7:59 p.m.