Giter Site home page Giter Site logo

Comments (5)

vighneshbirodkar avatar vighneshbirodkar commented on May 29, 2024

@RomainBrault You can use an if else statement based on the version number. I can't think of a clearner way to do it.

Thoughts @mblondel ?

from project-template.

mblondel avatar mblondel commented on May 29, 2024

We typically try to maintain backward compatibility for two releases so this seems like a bug.

@amueller Would it be possible to support both classes and instances for two releases?

from project-template.

amueller avatar amueller commented on May 29, 2024

From the discussion, it seems the 0.17 version is a bug and didn't work. All the checks expect a class object, not an instance.

from project-template.

RomainBrault avatar RomainBrault commented on May 29, 2024

@vighneshbirodkar Yes, it's what I did, but It looks a bit hackish to do it at user's level.

Anyway If I pass an instantiation of the object in 0.17, check_estimator only uses its class name. I think
it's actually useful if the check is done at the class level: one can do check_estimator(self) instead of check_estimator(self.__class__).

However if not applying on self, the code in master looks more natural to me (no need to (default) construct the estimator). I would be in favour of supporting both.

from project-template.

azrdev avatar azrdev commented on May 29, 2024

In the meantime (I'm looking at current sklearn 0.19.1) check_estimator can work with an instance or class, so this can be closed.

from project-template.

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.