Skip to content

Commit b5a1b35

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 433600e68fbb12e72d8c5e0707916f5603bb7057
1 parent 9ea707d commit b5a1b35

File tree

1,248 files changed

+4768
-4430
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,248 files changed

+4768
-4430
lines changed
Binary file not shown.

dev/_downloads/138e7c706c17949c3098ff8074b03ce7/plot_release_highlights_1_2_0.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@
6868
)
6969
hist_no_interact.fit(X, y)
7070

71+
# %%
72+
# Faster parser in :func:`~datasets.fetch_openml`
73+
# -----------------------------------------------
74+
# :func:`~datasets.fetch_openml` now supports a new `"pandas"` parser that is
75+
# more memory and CPU efficient. In v1.4, the default will change to
76+
# `parser="auto"` which will automatically use the `"pandas"` parser for dense
77+
# data and `"liac-arff"` for sparse data.
78+
from sklearn.datasets import fetch_openml
79+
80+
X, y = fetch_openml(
81+
"titanic", version=1, as_frame=True, return_X_y=True, parser="pandas"
82+
)
83+
X.head()
84+
7185
# %%
7286
# Experimental Array API support in :class:`~discriminant_analysis.LinearDiscriminantAnalysis`
7387
# --------------------------------------------------------------------------------------------
Binary file not shown.

dev/_downloads/df1b185d030fd32d53b4b2303d64816c/plot_release_highlights_1_2_0.ipynb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,24 @@
5454
"from sklearn.datasets import load_diabetes\nfrom sklearn.ensemble import HistGradientBoostingRegressor\n\nX, y = load_diabetes(return_X_y=True, as_frame=True)\n\nhist_no_interact = HistGradientBoostingRegressor(\n interaction_cst=[[i] for i in range(X.shape[1])], random_state=0\n)\nhist_no_interact.fit(X, y)"
5555
]
5656
},
57+
{
58+
"cell_type": "markdown",
59+
"metadata": {},
60+
"source": [
61+
"## Faster parser in :func:`~datasets.fetch_openml`\n:func:`~datasets.fetch_openml` now supports a new `\"pandas\"` parser that is\nmore memory and CPU efficient. In v1.4, the default will change to\n`parser=\"auto\"` which will automatically use the `\"pandas\"` parser for dense\ndata and `\"liac-arff\"` for sparse data.\n\n"
62+
]
63+
},
64+
{
65+
"cell_type": "code",
66+
"execution_count": null,
67+
"metadata": {
68+
"collapsed": false
69+
},
70+
"outputs": [],
71+
"source": [
72+
"from sklearn.datasets import fetch_openml\n\nX, y = fetch_openml(\n \"titanic\", version=1, as_frame=True, return_X_y=True, parser=\"pandas\"\n)\nX.head()"
73+
]
74+
},
5775
{
5876
"cell_type": "markdown",
5977
"metadata": {},

dev/_downloads/scikit-learn-docs.zip

13.4 KB
Binary file not shown.
213 Bytes
203 Bytes
-65 Bytes
-64 Bytes
71 Bytes

0 commit comments

Comments
 (0)