10000 Cleanup obsolete code from example (#29478) · scikit-learn/scikit-learn@cc97b80 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc97b80

Browse files
authored
Cleanup obsolete code from example (#29478)
1 parent 97c3f3a commit cc97b80

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/inspection/plot_permutation_importance_multicollinear.py

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def plot_permutation_importance(clf, X, y, ax):
6666

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

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

0 commit comments

Comments
 (0)
0