I have to build a classification model in Python using Gradient Booted Decision Tree and get the model parameters (the value at the node) to implement on hardware. As I understand the final result of a Gradient Boosted Decision Tree is a normal Decision Tree classifier with thresholds to classify the input data.
I have read the following posts:
1-Extracting decision rules from GradientBoostingClassifier
2-how to extract decision rules of GradientBosstingClassifier
As they mentioned,
model.estimators_
contains all the individual classifiers that the model consists of. In the case of a GradientBoostingClassifier, this is a 2D numpy array with shape (n_estimators, n_classes), and each item is a DecisionTreeRegressor.
They showed the way to get the threshold for each decision tree used as estimators in the process of building Gradient Decision Tree classifier. I am not sure if model.estimators
contains the final decision tree or not. The scikit-learn documents about ensemble classifier also does not mention it.
Please help me how to extract the final parameter (the value at the node) of Gradient Boosted Decision Tree model from scikit-learn. OR if I am misunderstanding something about the Gradient Boosted DT in scikit-learn, please let me know.