Simple-Tree
Sat 17 May 2025
title: "Simple Tree" author: "Rj" date: 2019-04-20 description: "List Test" type: technical_note draft: false
from sklearn import tree
X = [[0, 0], [1, 1]]
Y = [0, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(X, Y)
print(clf.predict([[21., 21.]]))
[1]
Score: 5
Category: sklearn