Constraints in the features contribution calculation?


#1

Hi,

Is there a way to enforce constraints in the features contribution calculation resulting from predcontrib = TRUE in predict function? (for example to enforce some features to have positive contributions)

Please note I’m already using monotonicity constraints in the xgboost training.

Thanks