Skip to content

Commit 8e50f90

Browse files
committed
.
1 parent 959dcd0 commit 8e50f90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

explainability.rst

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ If not important, the accuarcy should be affected a lot less.
8383
8484
result = permutation_importance(rf, X_test, y_test, n_repeats=10, random_state=42, n_jobs=2)
8585
sorted_idx = result.importances_mean.argsort()
86+
87+
plt.figure(figsize=(12,10))
88+
plt.boxplot(result.importances[sorted_idx].T,
89+
vert=False, labels=X.columns[sorted_idx]);
8690
8791
8892
A third party also provides the same API ``pip install eli5``.

0 commit comments

Comments
 (0)