Is there a way to visualize GradientBoosting or XGboost after modeling in python? Like any plots.
Asked
Active
Viewed 63 times
You can use below code to visualize Xgboost after model
model = XGBClassifier()
model.fit(X, y)
plot_tree(model)
plt.show()
package from xgboost import XGBClassifier