Question 36
What will be the output of the following code?
from sklearn.tree import DecisionTreeClassifier
X_train = [[2, 50], [3, 75], [4, 100], [5, 150], [6, 200]]y_train = [0, 0, 1, 1, 1]
clf = DecisionTreeClassifier(max_depth=2, random_state=42)clf.fit(X_train, y_train)
X_test = [[4, 120]]print(clf.predict(X_test))