Decision Tree - Ipynb - Colab
Decision Tree - Ipynb - Colab
Kelompok (A1)
Abriyanto 20220130208
X, y = load_iris(return_X_y=True)
print(f'Dimensi Feature:{X.shape}')
print(f'Class:{set(y)}')
Dimensi Feature:(150, 4)
Class:{0, 1, 2}
tree_model = DecisionTreeClassifier(max_depth=4)
accuracy 0.98 45
macro avg 0.97 0.98 0.98 45
weighted avg 0.98 0.98 0.98 45