Commit 7e5e5626 authored by Petra's avatar Petra

regression - visualize regression tree

parent cc209576
......@@ -46,7 +46,7 @@ print("data shape: ", df.shape)
# print("MSE \t{0:5.2f}".format( metrics.mean_squared_error(y_test,y_pred)))
# print("R2 \t{0:5.2f}".format( metrics.r2_score(y_test,y_pred)))
#
# # """ Visualize the tree """
# # """ Visualize the tree """ # https://scikit-learn.org/stable/auto_examples/tree/plot_unveil_tree_structure.html#sphx-glr-auto-examples-tree-plot-unveil-tree-structure-py
# # treeFileName = 'reg_tree.dot'
# # tree.export_graphviz(learner, out_file='treeFileName.dot')
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment