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

Fix fit_transform on KMeans #4055

Merged
merged 3 commits into from
Jul 16, 2021
Merged

Conversation

lowener
Copy link
Contributor

@lowener lowener commented Jul 15, 2021

Closes #4043

@lowener lowener requested a review from a team as a code owner July 15, 2021 14:33
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Jul 15, 2021
@lowener lowener added 3 - Ready for Review Ready for review by team non-breaking Non-breaking change bug Something isn't working labels Jul 15, 2021
Copy link
Member

@dantegd dantegd left a comment

Choose a reason for hiding this comment

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

Just one comment, thanks for the fix @lowener !

return self.fit(X).transform(X, convert_dtype=convert_dtype,
sample_weight=sample_weight)
self.fit(X, sample_weight=sample_weight)
return self.transform(X, convert_dtype=convert_dtype)
Copy link
Member

Choose a reason for hiding this comment

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

Could we add a call/test in one of the pytests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just added a test to cover fit_transform

@lowener lowener requested a review from dantegd July 16, 2021 15:55
@dantegd
Copy link
Member

dantegd commented Jul 16, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit eaa2add into rapidsai:branch-21.08 Jul 16, 2021
@lowener lowener deleted the 21.08-kmeans-fix branch July 18, 2021 16:07
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] cuml fit_transform broken: TypeError: transform() got an unexpected keyword argument 'sample_weight'
2 participants