Learn R Programming

iai (version 1.10.2)

predict_shap: Calculate SHAP values for all points in the features using the learner

Description

Julia Equivalent: IAI.predict_shap

Usage

predict_shap(lnr, X)

Arguments

lnr

The XGBoost learner or grid to use for prediction.

X

The features of the data.

IAI Compatibility

Requires IAI version 2.2 or higher.

Examples

Run this code
if (FALSE) iai::predict_shap(lnr, X)

Run the code above in your browser using DataLab