This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
descion trees: | |
from sklearn.datasets import load_iris | |
from sklearn.tree import DecisionTreeClassifier | |
from sklearn.model_selection import train_test_split | |
from sklearn.metrics import accuracy_score | |
from sklearn.tree import plot_tree | |
import matplotlib.pyplot as plt | |
iris = load_iris() | |
X = iris.data |