-
Notifications
You must be signed in to change notification settings - Fork 213
Regrouping pages on model tuning in the DataOps User Guide #2014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
emassoulie
wants to merge
1
commit into
main
Choose a base branch
from
issue-2003-regroup-dataops-hyperparameter-pages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
doc/modules/data_ops/validation/nested_cross_validation.rst
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,9 @@ | |
| Tuning and validating skrub DataOps plans | ||
| ========================================= | ||
|
|
||
| Preparing validation data | ||
| ------------------------- | ||
|
|
||
| To evaluate the prediction performance of our plan, we can fit it on a training | ||
| dataset, then obtaining prediction on an unseen, test dataset. | ||
|
|
||
|
|
@@ -50,6 +53,9 @@ Similarly for ``y``, we use :meth:`.skb.mark_as_y() <DataOp.skb.mark_as_y>`: | |
|
|
||
| >>> y = data["target"].skb.mark_as_y() | ||
|
|
||
| Simple validation process | ||
| ------------------------- | ||
|
|
||
| Now we can add our supervised estimator: | ||
|
|
||
| >>> pred = X.skb.apply(Ridge(), y=y) | ||
|
|
@@ -75,10 +81,7 @@ Result: | |
| Once a pipeline is defined and the ``X`` and ``y`` nodes are identified, skrub | ||
| is able to split the dataset and perform cross-validation. | ||
|
|
||
| Improving the confidence in our score through cross-validation | ||
| ============================================================== | ||
|
|
||
| We can increase our confidence in our score by using cross-validation instead of | ||
| We can increase our confidence in our score by using **cross-validation** instead of | ||
| a single split. The same mechanism is used but we now fit and evaluate the model | ||
| on several splits. This is done with :meth:`.skb.cross_validate() | ||
| <DataOp.skb.cross_validate>`. | ||
|
|
@@ -93,8 +96,8 @@ on several splits. This is done with :meth:`.skb.cross_validate() | |
|
|
||
| .. _user_guide_data_ops_splitting_data: | ||
|
|
||
| Splitting the data in train and test sets | ||
| ========================================= | ||
| More advanced train/test splitting | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the original title should be kept here: this section isn't about a more advanced way of defining train and test splits, we really are just splitting the data in two |
||
| ---------------------------------- | ||
|
|
||
| We can use :meth:`.skb.train_test_split() <DataOp.skb.train_test_split>` to | ||
| perform a single train-test split. skrub first evaluates the DataOps on | ||
|
|
@@ -138,7 +141,7 @@ It is possible to define a custom split function to use instead of | |
| :func:`sklearn.model_selection.train_test_split`. | ||
|
|
||
| Passing additional arguments to the splitter | ||
| ============================================ | ||
| -------------------------------------------- | ||
|
|
||
| Sometimes we want to pass additional data to the cross-validation splitter. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't say there are 10 "different" choose methods: the choose methods are 4 (from, int, float and bool), but they can be used in different ways