'dot' is not recognized as an internal or external command, operable program or batch file

Viewed 452
from sklearn import tree
!pip install graphviz
decision_tree = tree.export_graphviz(dt_model,out_file='tree.dot',feature_names=X_train.columns,max_depth=2,filled=True)
!dot -Tpng tree.dot -o tree.png

Error

'dot' is not recognized as an internal or external command,
operable program or batch file.

How to solve this?

0 Answers
Related