python决策树sklearn_python – 获取sklearn中节点的决策路径
对于使用iris数据集的节点的决策规则:from sklearn.datasets import load_irisfrom sklearn import treeimport graphviziris = load_iris()clf = tree.DecisionTreeClassifier()clf = clf.fit(iris.data, iris.target)dot_data = tr...