📜  skitlearn 决策树 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.277000             🧑  作者: Mango

代码示例2
from sklearn.datasets import load_iris
>>> from sklearn import tree
>>> X, y = load_iris(return_X_y=True)
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, y)