I am currently trying to understand the XGBoostClassifier model I have generated. Unfortunately due to company restrictions I am unable to install GraphViz into the environment. Are there any alternatives to the xgboost.plot() that I can try, which do not require Graphviz.
Asked
Active
Viewed 1,857 times
3
-
Can you install anything in your environment? If you can install pure python packages, you could try this answer that extracts the decision tree data and reconstructs it as a networkx graph (which does not rely on graphviz): https://stackoverflow.com/a/65048552/9357244 – chris Feb 21 '22 at 16:13
-
1If XGBoost (?) can produce a text file as output to be used by Graphviz as input, you can then use one of the Web-based Graphviz sites - no Graphviz install needed. – sroush Feb 24 '22 at 16:02