Skip to content

decision tree #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sawan848 opened this issue May 28, 2020 · 1 comment
Open

decision tree #1

sawan848 opened this issue May 28, 2020 · 1 comment

Comments

@sawan848
Copy link

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)

@sawan848
Copy link
Author

please help me ,
i have stuck with this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant