Skip to content

Commit 33c10a1

Browse files
committed
Pushing the docs to dev/ for branch: master, commit a83b8e0d486acb6d0958602dc3b8b48de151e44a
1 parent 4b64400 commit 33c10a1

File tree

1,202 files changed

+4083
-4083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,202 files changed

+4083
-4083
lines changed

dev/_downloads/0e54710c34c6326f0886857069d1cc1f/plot_permutation_importance_multicollinear.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
"outputs": [],
6464
"source": [
65-
"result = permutation_importance(clf, X_train, y_train, n_repeats=10,\n random_state=42)\nperm_sorted_idx = result.importances_mean.argsort()\n\ntree_importance_sorted_idx = np.argsort(clf.feature_importances_)\ntree_indices = np.arange(0, len(clf.feature_importances_)) + 0.5\n\nfig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 8))\nax1.barh(tree_indices,\n clf.feature_importances_[tree_importance_sorted_idx], height=0.7)\nax1.set_yticklabels(data.feature_names)\nax1.set_yticks(tree_indices)\nax1.set_ylim((0, len(clf.feature_importances_)))\nax2.boxplot(result.importances[perm_sorted_idx].T, vert=False,\n labels=data.feature_names)\nfig.tight_layout()\nplt.show()"
65+
"result = permutation_importance(clf, X_train, y_train, n_repeats=10,\n random_state=42)\nperm_sorted_idx = result.importances_mean.argsort()\n\ntree_importance_sorted_idx = np.argsort(clf.feature_importances_)\ntree_indices = np.arange(0, len(clf.feature_importances_)) + 0.5\n\nfig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 8))\nax1.barh(tree_indices,\n clf.feature_importances_[tree_importance_sorted_idx], height=0.7)\nax1.set_yticklabels(data.feature_names[tree_importance_sorted_idx])\nax1.set_yticks(tree_indices)\nax1.set_ylim((0, len(clf.feature_importances_)))\nax2.boxplot(result.importances[perm_sorted_idx].T, vert=False,\n labels=data.feature_names[perm_sorted_idx])\nfig.tight_layout()\nplt.show()"
6666
]
6767
},
6868
{
Binary file not shown.

dev/_downloads/34da82a8792cf79d06c7598ae139cc1c/plot_permutation_importance_multicollinear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(12, 8))
6161
ax1.barh(tree_indices,
6262
clf.feature_importances_[tree_importance_sorted_idx], height=0.7)
63-
ax1.set_yticklabels(data.feature_names)
63+
ax1.set_yticklabels(data.feature_names[tree_importance_sorted_idx])
6464
ax1.set_yticks(tree_indices)
6565
ax1.set_ylim((0, len(clf.feature_importances_)))
6666
ax2.boxplot(result.importances[perm_sorted_idx].T, vert=False,
67-
labels=data.feature_names)
67+
labels=data.feature_names[perm_sorted_idx])
6868
fig.tight_layout()
6969
plt.show()
7070

Binary file not shown.

dev/_downloads/scikit-learn-docs.pdf

26.3 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes

0 commit comments

Comments
 (0)