Skip to content

Commit 301dd13

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 3d16a21b6c9c6940509d98e5e0c030658f7c348c
1 parent e057577 commit 301dd13

File tree

1,364 files changed

+4729
-4720
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,364 files changed

+4729
-4720
lines changed
Binary file not shown.

dev/_downloads/3c9b7bcd0b16f172ac12ffad61f3b5f0/plot_stack_predictors.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"outputs": [],
4646
"source": [
47-
"import numpy as np\n\nfrom sklearn.datasets import fetch_openml\nfrom sklearn.utils import shuffle\n\n\ndef load_ames_housing():\n df = fetch_openml(name=\"house_prices\", as_frame=True, parser=\"pandas\")\n X = df.data\n y = df.target\n\n features = [\n \"YrSold\",\n \"HeatingQC\",\n \"Street\",\n \"YearRemodAdd\",\n \"Heating\",\n \"MasVnrType\",\n \"BsmtUnfSF\",\n \"Foundation\",\n \"MasVnrArea\",\n \"MSSubClass\",\n \"ExterQual\",\n \"Condition2\",\n \"GarageCars\",\n \"GarageType\",\n \"OverallQual\",\n \"TotalBsmtSF\",\n \"BsmtFinSF1\",\n \"HouseStyle\",\n \"MiscFeature\",\n \"MoSold\",\n ]\n\n X = X.loc[:,features]\n X, y = shuffle(X, y, random_state=0)\n\n X = X.iloc[:600]\n y = y.iloc[:600]\n return X, np.log(y)\n\n\nX, y = load_ames_housing()"
47+
"import numpy as np\n\nfrom sklearn.datasets import fetch_openml\nfrom sklearn.utils import shuffle\n\n\ndef load_ames_housing():\n df = fetch_openml(name=\"house_prices\", as_frame=True, parser=\"pandas\")\n X = df.data\n y = df.target\n\n features = [\n \"YrSold\",\n \"HeatingQC\",\n \"Street\",\n \"YearRemodAdd\",\n \"Heating\",\n \"MasVnrType\",\n \"BsmtUnfSF\",\n \"Foundation\",\n \"MasVnrArea\",\n \"MSSubClass\",\n \"ExterQual\",\n \"Condition2\",\n \"GarageCars\",\n \"GarageType\",\n \"OverallQual\",\n \"TotalBsmtSF\",\n \"BsmtFinSF1\",\n \"HouseStyle\",\n \"MiscFeature\",\n \"MoSold\",\n ]\n\n X = X[features]\n X, y = shuffle(X, y, random_state=0)\n\n X = X[:600]\n y = y[:600]\n return X, np.log(y)\n\n\nX, y = load_ames_housing()"
4848
]
4949
},
5050
{

dev/_downloads/4825fc8223d1af0f3b61080c3dea3a62/plot_faces_decomposition.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def plot_gallery(title, images, n_col=n_col, n_row=n_row, cmap=plt.cm.gray):
191191
batch_size=20,
192192
max_iter=50,
193193
random_state=rng,
194-
n_init="auto",
195194
)
196195
kmeans_estimator.fit(faces_centered)
197196
plot_gallery(
Binary file not shown.

dev/_downloads/c6ccb1a9c5f82321f082e9767a2706f3/plot_stack_predictors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ def load_ames_housing():
7272
"MoSold",
7373
]
7474

75-
X = X.loc[:,features]
75+
X = X[features]
7676
X, y = shuffle(X, y, random_state=0)
7777

78-
X = X.iloc[:600]
79-
y = y.iloc[:600]
78+
X = X[:600]
79+
y = y[:600]
8080
return X, np.log(y)
8181

8282

dev/_downloads/fcae36814d8e700024ca855a1eb87ca9/plot_faces_decomposition.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
},
185185
"outputs": [],
186186
"source": [
187-
"kmeans_estimator = cluster.MiniBatchKMeans(\n n_clusters=n_components,\n tol=1e-3,\n batch_size=20,\n max_iter=50,\n random_state=rng,\n n_init=\"auto\",\n)\nkmeans_estimator.fit(faces_centered)\nplot_gallery(\n \"Cluster centers - MiniBatchKMeans\",\n kmeans_estimator.cluster_centers_[:n_components],\n)"
187+
"kmeans_estimator = cluster.MiniBatchKMeans(\n n_clusters=n_components,\n tol=1e-3,\n batch_size=20,\n max_iter=50,\n random_state=rng,\n)\nkmeans_estimator.fit(faces_centered)\nplot_gallery(\n \"Cluster centers - MiniBatchKMeans\",\n kmeans_estimator.cluster_centers_[:n_components],\n)"
188188
]
189189
},
190190
{

dev/_downloads/scikit-learn-docs.zip

6.64 KB
Binary file not shown.
18 Bytes
12 Bytes
-30 Bytes

0 commit comments

Comments
 (0)