Giter Club home page Giter Club logo

Comments (8)

hexsix avatar hexsix commented on May 28, 2024 2

I changed from sklearn.cluster import _k_means to from sklearn.cluster import _k_means_fast as _k_means but got another exception

conda/pip install scikit-learn==0.20.0 may be a better way if the pip package is not up to date

check this issue for more details #26

from spherecluster.

lize1803 avatar lize1803 commented on May 28, 2024

thank you, it fix my bugs

from spherecluster.

AlexanderJuestel avatar AlexanderJuestel commented on May 28, 2024

Yeah, similar issue here. The package sklearn.externals.joblib was removed from sklearn in version 0.23 so I have to downgrade to be able to use spherecluster again.

from spherecluster.

AndrewAnnex avatar AndrewAnnex commented on May 28, 2024

@jasonlaska @dominikstrb @cv3d Thanks again for providing this package, but are you interested in additional help in maintaining this project? If additional people could be added to the repo and the pypi account other members of the community can help fix some of these minor incompatibilities

from spherecluster.

dominikstrb avatar dominikstrb commented on May 28, 2024

Hi @AndrewAnnex I only fixed some imports a couple of months ago, as far as I can remember. If there is anything I can do to help, I am happy to!

from spherecluster.

AndrewAnnex avatar AndrewAnnex commented on May 28, 2024

hey @dominikstrb, I think the most pressing thing would be to fix any remaining issues spherecluster running against newer releases of sklearn and cut a new release for pypi to fix existing issues. I am happy to contribute a conda-forge recipe for spherecluster once that is setup.

from spherecluster.

dominikstrb avatar dominikstrb commented on May 28, 2024

The biggest problem is that the implementation of k-means was changed in sklearn 0.23.2: scikit-learn/scikit-learn#11950

The internals of the implementation are now very different and it does seem like more than a minor fix in the spherecluster codebase is necessary to accomodate these changes, since spherecluster does not only use the public sklearn api, but the internals of the k-means implementation including functions like _centers_dense, which do not exist anymore since the commit I referenced.

I'm not familiar enough with the current sklearn k-means implementation, but maybe @jeremiedbb, who did that overhaul of k-means can help us.

from spherecluster.

jeremiedbb avatar jeremiedbb commented on May 28, 2024

I'm not sure I can help you. Basically we can't guarantee that the private api won't change in the future. I'd advise you to only rely on the public api or reimplement all the private parts of the api you need.

In your case it looks like a huge amount of stuff to reimplement while you're just adding a single line in kmeans_single_lloyd.

As a temporary fix you can pin the scikit-learn version but it's not a good solution in the longterm.

Sorry I can't be more helpful

from spherecluster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.