Is anyone having trouble using the "plot_tree" function with scikit learn?
Here is the line of code that is producing the error below.
tree.plot_tree(clf,feature_names=X_train.columns,class_names=['Deceased','Not deceased'],label='root')
error:
module 'sklearn.tree' has no attribute 'plot_tree'
I looked at Dr. Stonedahl's example code and he uses the same code so I am wondering if anyone else is getting this error?