Skip to content

Commit

Permalink
Cleanup obsolete code from example (scikit-learn#29478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jondo authored Jul 12, 2024
1 parent 97c3f3a commit cc97b80
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def plot_permutation_importance(clf, X, y, ax):

mdi_importances = pd.Series(clf.feature_importances_, index=X_train.columns)
tree_importance_sorted_idx = np.argsort(clf.feature_importances_)
tree_indices = np.arange(0, len(clf.feature_importances_)) + 0.5

fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 8))
mdi_importances.sort_values().plot.barh(ax=ax1)
Expand Down

0 comments on commit cc97b80

Please sign in to comment.