bhattbhavesh91 / visualize-decision-tree

🌲 Decision Tree Visualization using GraphViz and Python
GNU General Public License v3.0
8 stars 36 forks source link

decision tree #1

Open sawan848 opened 4 years ago

sawan848 commented 4 years ago

InvocationException Traceback (most recent call last)

in ----> 1 plot_decision_tree(clf, X_train.columns,df.columns[1]) in plot_decision_tree(clf, feature_name, target_name) 7 special_characters=True) 8 graph = pydotplus.graph_from_dot_data(dot_data.getvalue()) ----> 9 return Image(graph.create_png()) D:\PROGRAM FILES\Anaconda\lib\site-packages\pydotplus\graphviz.py in (f, prog) 1789 self.__setattr__( 1790 'create_' + frmt, -> 1791 lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog) 1792 ) 1793 f = self.__dict__['create_' + frmt] D:\PROGRAM FILES\Anaconda\lib\site-packages\pydotplus\graphviz.py in create(self, prog, format) 2024 raise InvocationException( 2025 'Program terminated with status: %d. stderr follows: %s' % ( -> 2026 status, stderr_output)) 2027 elif stderr_output: 2028 print(stderr_output) InvocationException: Program terminated with status: 1. stderr follows: 'D:\PROGRAM' is not recognized as an internal or external command, operable program or batch file. ![Screenshot (235)](https://user-images.githubusercontent.com/53111074/83150300-bff4cd00-a118-11ea-8799-50966c37ee17.png)
sawan848 commented 4 years ago

please help me , i have stuck with this error