Coder Social home page Coder Social logo

Comments (3)

FBruzzesi avatar FBruzzesi commented on July 27, 2024 2

Hey @cerlymarco , as you can see this issue was mentioned in a few places. Just to add some description/context to each one of those:

  • GroupedPredictor refactoring was a first attempt to fix the issue reported here, as well as expanding the functionalities. Since this was getting a bit messy we decided to follow another approach, which led us to the next two points.
  • GroupedPredictor patch follows your suggestion to raise an error if shrinkage is used in combination with a classification task. This is a somewhat breaking change which is already in the main branch.
  • In HierarchicalPredictor and HierarchicalTransformer we set up the discussion for how to deal with that as well as adding other features to meta estimators that are somewhat similar to Grouped* ones.
    • I don't want to make promises, but you could expect HierarchicalPredictor (or even better a HierarchicalClassifier) that works with classification tasks and shrinkage to come fairly soon
    • Available since 0.8.0 release

from scikit-lego.

cerlymarco avatar cerlymarco commented on July 27, 2024 1

Hi @FBruzzesi, thanks for your reply! That seems reasonable. If that is the case, an error/warning may be raised when a classifier (an estimator with predict_proba method) is provided with shrinkage enabled. Otherwise, a proper shrinkage method for probabilities could be implemented

from scikit-lego.

FBruzzesi avatar FBruzzesi commented on July 27, 2024

Hey @cerlymarco, thanks for reporting this bug. I can replicate the issue and will take a closer look.

My first impression is that shrinkage was intended for regression problems only, as running .predict(...) with the same data you provided will yield values that are not classes and that shouldn't be the expected output.

from scikit-lego.

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.