Skip to content

decision tree #1

@sawan848

Description

@sawan848

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions