Skip to content

Commit ab75f02

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 710fe973174be55b8d245b3a9232c4c6fd30aa2e
1 parent ba3d22b commit ab75f02

File tree

1,333 files changed

+7275
-7261
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,333 files changed

+7275
-7261
lines changed

dev/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 023183ae1f8c81adaf3d63c25fbc3952
3+
config: 66b6375e600dade30dd955ba89cf197f
44
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.

dev/_downloads/592b2521e44501266ca5339d1fb123cb/plot_rfe_with_cross_validation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,16 @@
6666
# ---------------------------------------------------
6767

6868
import matplotlib.pyplot as plt
69+
import pandas as pd
6970

70-
n_scores = len(rfecv.cv_results_["mean_test_score"])
71+
cv_results = pd.DataFrame(rfecv.cv_results_)
7172
plt.figure()
7273
plt.xlabel("Number of features selected")
7374
plt.ylabel("Mean test accuracy")
7475
plt.errorbar(
75-
range(min_features_to_select, n_scores + min_features_to_select),
76-
rfecv.cv_results_["mean_test_score"],
77-
yerr=rfecv.cv_results_["std_test_score"],
76+
x=cv_results["n_features"],
77+
y=cv_results["mean_test_score"],
78+
yerr=cv_results["std_test_score"],
7879
)
7980
plt.title("Recursive Feature Elimination \nwith correlated features")
8081
plt.show()
Binary file not shown.

dev/_downloads/949ed208b2147ed2b3e348e81fef52be/plot_rfe_with_cross_validation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"outputs": [],
6060
"source": [
61-
"import matplotlib.pyplot as plt\n\nn_scores = len(rfecv.cv_results_[\"mean_test_score\"])\nplt.figure()\nplt.xlabel(\"Number of features selected\")\nplt.ylabel(\"Mean test accuracy\")\nplt.errorbar(\n range(min_features_to_select, n_scores + min_features_to_select),\n rfecv.cv_results_[\"mean_test_score\"],\n yerr=rfecv.cv_results_[\"std_test_score\"],\n)\nplt.title(\"Recursive Feature Elimination \\nwith correlated features\")\nplt.show()"
61+
"import matplotlib.pyplot as plt\nimport pandas as pd\n\ncv_results = pd.DataFrame(rfecv.cv_results_)\nplt.figure()\nplt.xlabel(\"Number of features selected\")\nplt.ylabel(\"Mean test accuracy\")\nplt.errorbar(\n x=cv_results[\"n_features\"],\n y=cv_results[\"mean_test_score\"],\n yerr=cv_results[\"std_test_score\"],\n)\nplt.title(\"Recursive Feature Elimination \\nwith correlated features\")\nplt.show()"
6262
]
6363
},
6464
{

dev/_downloads/scikit-learn-docs.zip

1.31 KB
Binary file not shown.
-39 Bytes
161 Bytes
-19 Bytes
112 Bytes

0 commit comments

Comments
 (0)