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

Support dataframes for k-means #393

Merged
merged 3 commits into from
Oct 8, 2018
Merged

Conversation

mrocklin
Copy link
Member

@mrocklin mrocklin commented Oct 8, 2018

Fixes #390

I went with the easier approach of just forcing chunk lengths. I did this after I realized that we're going to be doing multiple passes anyway.

"Cannot fit on dask.dataframe due to unknown " "partition lengths."
)
if isinstance(X, dd.DataFrame):
X = X.to_dask_array(True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style-nit: specify the lengths= keyword for boolean arguments.

LGTM otherwise.

@TomAugspurger
Copy link
Member

Looks like tests/test_kmeans.py::TestKMeans::test_dask_dataframe_raises will need to be removed.

@TomAugspurger TomAugspurger merged commit 6c919ed into dask:master Oct 8, 2018
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