0

Is there a way to visualize GradientBoosting or XGboost after modeling in python? Like any plots.

foyeyefo
  • 33
  • 3

1 Answers1

0

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

Kum_R
  • 368
  • 2
  • 19