最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Draw a decision tree while hiding the values ​of the "value" row - Stack Overflow

programmeradmin5浏览0评论

I want to simplify the decision tree output and hide the values ​​in the "value" field.Below is the code I am using

enter image description here

  fig, ax = plt.subplots(figsize=(10, 10)) 
  plt.figure(figsize=(210,10))
  plot_tree(m,
  feature_names=X.columns, 
  filled=True, 
  impurity=True, 
  rounded=True,
  proportion = True,
  max_depth = 3)

  plt.show()
发布评论

评论列表(0)

  1. 暂无评论