I'm using Spark XGBoost4j with the Pyspark wrapper (https://github.com/sllynn/spark-xgboost), and I would like to know the name of the contributions column of a model. When I do:
xgboost = XGBoostClassifier(
featuresCol="features",
labelCol="labelCol",
predictionCol="prediction",
contribPredictionCol="contribs",
seed=42,
)
xgboost.getParam("contribPredictionCol")
it outputs:
Param(parent='XGBoostClassifier_998c81888fa3', name='contribPredictionCol', doc='name of the predictContrib results')
However, I would like it to output: "contribs". How can I achieve this? Thank you.