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

TypeError: _labels_inertia() got an unexpected keyword argument 'precompute_distances' #30

Open
empty-id opened this issue Jun 27, 2020 · 2 comments

Comments

@empty-id
Copy link

The error occurs after running:

from spherecluster import SphericalKMeans
skm = SphericalKMeans(n_clusters=2)
skm.fit(wv) # wv is a (6, 200) numpy array
@Ch4ll3ng3r
Copy link

I get the same error after updating scikit-learn to version 0.23.1.
I guess using an older version could be a solution.

@rtrad89
Copy link

rtrad89 commented Aug 6, 2020

Downgrading scikit-learn to 0.22.0 is the most feasible workaround I've found for now.

If you are using Anaconda3, you can do so thus:

 conda install scikit-learn=0.22.0

→ A related issue: #26

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

No branches or pull requests

3 participants