Artificial Intelligence, Machine Learning, Data Science, Algorithms, Mathematics.
matplotlib.pyplot as plt from sklearn import tree #dt_model is a DecisionTreeClassifier object #df is training dataset fig = plt.figure(figsize=(15,7)) _ = tree.plot_tree(dt_model,feature_names = df.columns, filled=True) Understanding a few parameters Gini index is used as impurity measure. Value