modified cross_validation.rst file with a k-fold cross validation example#994
Open
modified cross_validation.rst file with a k-fold cross validation example#994
Conversation
…example that replaces example based on train_test_split() method
Co-authored-by: Tom Augspurger <tom.augspurger88@gmail.com>
Co-authored-by: Tom Augspurger <tom.augspurger88@gmail.com>
| .. ipython:: python | ||
| kf = KFold(n_splits=5) | ||
|
|
||
| for i, j in kf.split(X): |
Member
There was a problem hiding this comment.
Looks like the doc build failed here: https://github.com/dask/dask-ml/actions/runs/9434455032/job/26270343032?pr=994
Is that from the lack of a newline after the ipython directive?
Author
There was a problem hiding this comment.
thank you for spotting that, added a new line
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Dear Dask team,
Currently, cross validation page consists only of train_test_split() method. Here is the link: https://ml.dask.org/cross_validation.html
Dask ML comes with powerful kFold method, so created a simple example to illustrate the kFold cross validation method.
My hope is this would contribute positively to the documentation. Please advice. Thank you for the opportunity of contributing to this amazing community driven ML library.
Here is the link I used for the same: https://ml.dask.org/modules/generated/dask_ml.model_selection.KFold.html