Skip to content

Commit 27aedc7

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 52ba1d00bb63a7405c7fc22e991234657502aeae
1 parent be1d1d9 commit 27aedc7

172 files changed

Lines changed: 34798 additions & 34800 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

dev/_downloads/3b6391bc7f056e067dfac38156a1a3ee/13_choices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
# ``X.skb.apply(skrub.optional(StandardScaler()))``
9898
#
9999
# Choices can be given a name which is used to display hyperparameter search
100-
# results and plots or to override their outcome.
100+
# results and plots or to override their outcome. The name is optional.
101101
#
102102
# Note that ``skrub.choose_float()`` and ``skrub.choose_int()`` can be given a
103103
# ``log`` argument to sample in log scale.

dev/_downloads/46474e90b38626db88d32c3a82638dfa/13_choices.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"cell_type": "markdown",
7070
"metadata": {},
7171
"source": [
72-
"For the sake of the example, we will focus on the number of ``MinHashEncoder``\ncomponents and the ``learning_rate`` of the ``HistGradientBoostingClassifier``\nto illustrate the ``skrub.choose_from(...)`` objects.\nWhen we use a scikit-learn hyperparameter-tuner like ``GridSearchCV`` or\n``RandomizedSearchCV``, we need to specify a grid of hyperparameters separately\nfrom the estimator, with something similar to\n``GridSearchCV(my_pipeline, param_grid={\"encoder__n_components: [5, 10, 20]\"})``.\nInstead, with skrub we can use\n``skrub.choose_from(...)`` directly where the actual value\nwould normally go. Skrub then takes care of constructing the\n``GridSearchCV``'s parameter grid for us.\n\nSeveral utilities are available:\n\n- ``choose_from`` to choose from a discrete set of values\n- ``choose_float`` and ``choose_int`` to sample numbers in a given range\n- ``choose_bool`` to choose between ``True`` and ``False``\n- ``optional`` to choose between something and ``None``; typically to make a\n transformation step optional such as\n ``X.skb.apply(skrub.optional(StandardScaler()))``\n\nChoices can be given a name which is used to display hyperparameter search\nresults and plots or to override their outcome.\n\nNote that ``skrub.choose_float()`` and ``skrub.choose_int()`` can be given a\n``log`` argument to sample in log scale.\n\n"
72+
"For the sake of the example, we will focus on the number of ``MinHashEncoder``\ncomponents and the ``learning_rate`` of the ``HistGradientBoostingClassifier``\nto illustrate the ``skrub.choose_from(...)`` objects.\nWhen we use a scikit-learn hyperparameter-tuner like ``GridSearchCV`` or\n``RandomizedSearchCV``, we need to specify a grid of hyperparameters separately\nfrom the estimator, with something similar to\n``GridSearchCV(my_pipeline, param_grid={\"encoder__n_components: [5, 10, 20]\"})``.\nInstead, with skrub we can use\n``skrub.choose_from(...)`` directly where the actual value\nwould normally go. Skrub then takes care of constructing the\n``GridSearchCV``'s parameter grid for us.\n\nSeveral utilities are available:\n\n- ``choose_from`` to choose from a discrete set of values\n- ``choose_float`` and ``choose_int`` to sample numbers in a given range\n- ``choose_bool`` to choose between ``True`` and ``False``\n- ``optional`` to choose between something and ``None``; typically to make a\n transformation step optional such as\n ``X.skb.apply(skrub.optional(StandardScaler()))``\n\nChoices can be given a name which is used to display hyperparameter search\nresults and plots or to override their outcome. The name is optional.\n\nNote that ``skrub.choose_float()`` and ``skrub.choose_int()`` can be given a\n``log`` argument to sample in log scale.\n\n"
7373
]
7474
},
7575
{
Binary file not shown.
44 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)