how does xgboost enforce monotonicity constraints

Viewed 1468

I would like to know that how xgboost enforce monotonic constraints while building the tree model. So far by reading the code, I have understood that it has something to do with weights of each node but am not able to understand why this approach works. Thanks in advance for your answers

1 Answers
Related