diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 19cbc3c..c31cabe 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,8 @@ - - + + @@ -146,22 +147,22 @@ - + - - + + - - + + - - + + - + @@ -178,10 +179,10 @@ - + - + @@ -195,6 +196,6 @@ - + \ No newline at end of file diff --git a/__pycache__/treelearn.cpython-37.pyc b/__pycache__/treelearn.cpython-37.pyc index deabdf5..4f93d7d 100644 Binary files a/__pycache__/treelearn.cpython-37.pyc and b/__pycache__/treelearn.cpython-37.pyc differ diff --git a/mydecisiontree.png b/mydecisiontree.png deleted file mode 100644 index 4e0db11..0000000 Binary files a/mydecisiontree.png and /dev/null differ diff --git a/treelearn.py b/treelearn.py index fc0104e..201278d 100644 --- a/treelearn.py +++ b/treelearn.py @@ -15,6 +15,6 @@ def treelearn(): data = tree.export_graphviz(dtree, out_file=None, feature_names=features) graph = pydotplus.graph_from_dot_data(data) graph.write_png(os.path.join('resources', 'mydecisiontree.png')) - img = pltimg.imread('mydecisiontree.png') + img = pltimg.imread(os.path.join('resources', 'mydecisiontree.png')) imgplot = plt.imshow(img) plt.show() \ No newline at end of file