'DecisionTreeClassifier' object has no attribute 'importances_'
Do Checkout this Link


  To Visualise The Tree Itself


from sklearn.tree import export_graphviz
import graphviz

export_graphviz(tree, out_file="mytree.dot")
with open("mytree.dot") as f:
    dot_graph = f.read()
graphviz.Source(dot_graph)


OR

from sklearn.tree import convert_to_graphviz
convert_to_graphviz(tree)


OR

from sklearn.tree import convert_to_graphviz
import graphviz

graphviz.Source(export_graphviz(tree))


The Visualisation You Can Get Will be Whole Tree Itself..



  To Display Feature Importances


from sklearn.tree import DecisionTreeClassifier
classifier = DecisionTreeClassifier()
classifier.fit(features, labels)
for name, importance in zip(features.columns, classifier.feature_importances_):
    print(name, importance)
    ## Now You Can Do Whatever You Want(plot them using a Barplot etc)