📜  skcikit 学习决策树 - Python 代码示例

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

代码示例1
>>> from sklearn import tree
>>> X = [[0, 0], [1, 1]]
>>> Y = [0, 1]
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, Y)