1from sklearn.datasets import load_iris
2>>> from sklearn import tree
3>>> X, y = load_iris(return_X_y=True)
4>>> clf = tree.DecisionTreeClassifier()
5>>> clf = clf.fit(X, y)
1Training Data Set Accuracy: 0.9610705596107056
2Training Data F1 Score 0.972027972027972
3Validation Mean F1 Score: 0.6348494236272646
4Validation Mean Accuracy: 0.7030561269468117
5