热线电话:13121318867

登录
2019-07-08 阅读量: 495
python如何查看决策树完整的流程

python如何查看决策树完整的流程

# import export_graphviz

from sklearn.tree import export_graphviz

# export the decision tree to a tree.dot file

# for visualizing the plot easily anywhere

export_graphviz(regressor, out_file ='tree.dot',

feature_names =['Production Cost'])

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子