Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

npk7
Copy link

@npk7 npk7 commented Jun 8, 2024

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

docs/source/cross_validation.rst Outdated Show resolved Hide resolved
docs/source/cross_validation.rst Show resolved Hide resolved
docs/source/cross_validation.rst Outdated Show resolved Hide resolved
docs/source/cross_validation.rst Outdated Show resolved Hide resolved
.. ipython:: python
kf = KFold(n_splits=5)

for i, j in kf.split(X):
Copy link
Member

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?

Copy link
Author

@npk7 npk7 Jun 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants