How do I get sample size as well as value ( average) in case of decision tree regression?

前端 未结 0 446
傲寒
傲寒 2021-02-06 16:21

On running this code,

import numpy as np
from sklearn.tree import _tree

def tree_to_code(tree, feature_names):
    tree_ = tree.tree_
    feature_name = [feature         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题