I am using xgboost with the scala API.
I used to use xgboost with R and python API and I discover recently the pred_contribs argument.
For example, in python API, documentation says:
When this is True the output will be a matrix of size (nsample, nfeats + 1) with each record indicating the feature contributions (SHAP values) for that prediction. The sum of all feature contributions is equal to the raw untransformed margin value of the prediction. Note the final column is the bias term.
As far as I understand, it's a kind of Tree SHAP implementation directly in xgboost.
My question is:
predictContrib is the same thing in Scala API ?