You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Page 27 of the book - had to change the code to this:
fig, ax = plt.subplots(figsize=(8, 4))
tree.plot_tree(stump, feature_names=['value'],
filled=True,
class_names=list(stump.classes_),
ax=ax)
with class_names param needing a list
The text was updated successfully, but these errors were encountered:
Page 27 of the book - had to change the code to this:
fig, ax = plt.subplots(figsize=(8, 4))
tree.plot_tree(stump, feature_names=['value'],
filled=True,
class_names=list(stump.classes_),
ax=ax)
with class_names param needing a list
The text was updated successfully, but these errors were encountered: