Skip to content

Commit 28b7540

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 52236699f6ecafa8b17415f6a7d14c1bdc2b68ef
1 parent bd90191 commit 28b7540

File tree

1,223 files changed

+4227
-4227
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,223 files changed

+4227
-4227
lines changed
Binary file not shown.

dev/_downloads/26f110ad6cff1a8a7c58b1a00d8b8b5a/plot_column_transformer_mixed_types.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Column Transformer with Mixed Types\n\n.. currentmodule:: sklearn\n\nThis example illustrates how to apply different preprocessing and feature\nextraction pipelines to different subsets of features, using\n:class:`~compose.ColumnTransformer`. This is particularly handy for the\ncase of datasets that contain heterogeneous data types, since we may want to\nscale the numeric features and one-hot encode the categorical ones.\n\nIn this example, the numeric data is standard-scaled after mean-imputation,\nwhile the categorical data is one-hot encoded after imputing missing values\nwith a new category (``'missing'``).\n\nIn addition, we show two different ways to dispatch the columns to the\nparticular pre-processor: by column names and by column data types.\n\nFinally, the preprocessing pipeline is integrated in a full prediction pipeline\nusing :class:`~pipeline.Pipeline`, together with a simple classification\nmodel.\n"
18+
"\n# Column Transformer with Mixed Types\n\n.. currentmodule:: sklearn\n\nThis example illustrates how to apply different preprocessing and feature\nextraction pipelines to different subsets of features, using\n:class:`~compose.ColumnTransformer`. This is particularly handy for the\ncase of datasets that contain heterogeneous data types, since we may want to\nscale the numeric features and one-hot encode the categorical ones.\n\nIn this example, the numeric data is standard-scaled after mean-imputation. The\ncategorical data is one-hot encoded via ``OneHotEncoder``, which\ncreates a new category for missing values.\n\nIn addition, we show two different ways to dispatch the columns to the\nparticular pre-processor: by column names and by column data types.\n\nFinally, the preprocessing pipeline is integrated in a full prediction pipeline\nusing :class:`~pipeline.Pipeline`, together with a simple classification\nmodel.\n"
1919
]
2020
},
2121
{
Binary file not shown.

dev/_downloads/79c38d2f2cb1f2ef7d68e0cc7ea7b4e4/plot_column_transformer_mixed_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
case of datasets that contain heterogeneous data types, since we may want to
1212
scale the numeric features and one-hot encode the categorical ones.
1313
14-
In this example, the numeric data is standard-scaled after mean-imputation,
15-
while the categorical data is one-hot encoded after imputing missing values
16-
with a new category (``'missing'``).
14+
In this example, the numeric data is standard-scaled after mean-imputation. The
15+
categorical data is one-hot encoded via ``OneHotEncoder``, which
16+
creates a new category for missing values.
1717
1818
In addition, we show two different ways to dispatch the columns to the
1919
particular pre-processor: by column names and by column data types.

dev/_downloads/scikit-learn-docs.zip

7.96 KB
Binary file not shown.
-191 Bytes
-67 Bytes
-182 Bytes
-10 Bytes
537 Bytes

0 commit comments

Comments
 (0)