View source: R/tree_explainer.R
| qshap_loss | R Documentation |
Computes the feature-specific loss contributions using Q-SHAP decomposition.
This is an internal function typically called by rsq().
qshap_loss(explainer, x, y, y_mean_ori = NULL)
explainer |
A qshap_tree_explainer object created by |
x |
Feature matrix or data frame |
y |
Response vector |
y_mean_ori |
Optional pre-computed mean of y (for efficiency) |
A matrix of loss contributions with dimensions (n_samples, n_features)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.