Giter Site home page Giter Site logo

Comments (2)

gtauzin avatar gtauzin commented on May 21, 2024

Thanks Umbe, I agree with both your points. Indeed there are many things to get from sklearn by just making it available on a collection of objects and decorators are definitely the way to go, but I believe for praticality and documentation purposes each class should be independently wrapped.

Also I would love to have MDS act on a collection of distance matrices, even if is just for visualization purposes.

from giotto-tda.

ulupo avatar ulupo commented on May 21, 2024

Thanks @gtauzin, yes having been prompted by you to look at this again I think we can do a good job of this. In principle, any dimensionality reduction algorithm (IsoMap, MDS, UMAP, you name it) could and should be turned into a version for collections in an easy way. Individually wrapped is fine of course, but what is the main argument against a factory function that works universally for anything in, say, sklearn.manifold? The interface would be always the same and we would offload the documentation work to scikit-learn, simply pointing out that calling factory(class)(**kwargs) makes an instance of a version of class which acts on collections. It would be easy to keep in sync with scikit-learn this way, too (say some parameters in classes in sklearn.manifold change, for instance).

We do something very close to this in ParallelClustering for Mapper, though we do not expose that class to the user.

from giotto-tda.

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.