-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
modified cross_validation.rst file with a k-fold cross validation example #994
base: main
Are you sure you want to change the base?
Conversation
…example that replaces example based on train_test_split() method
Co-authored-by: Tom Augspurger <[email protected]>
Co-authored-by: Tom Augspurger <[email protected]>
.. ipython:: python | ||
kf = KFold(n_splits=5) | ||
|
||
for i, j in kf.split(X): |
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.
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?
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.
thank you for spotting that, added a new line
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