Python XGBoost Generate Prediction Mathematical Equation
Depending on the problem, the final 'equation' could be arbitrarily complex.
A good place to start is to inspect one or some of the decision trees:
from xgboost import plot_tree
Which takes your trained model and the tree index as arguments.
I have a XGBRegressor model and now I'm curious if there is a way to generate the final prediction equation in Python.
P.S: I do not have mathematical background so if my question is considered basic, please understand.