Giter VIP home page Giter VIP logo

Comments (7)

AxeldeRomblay avatar AxeldeRomblay commented on May 10, 2024

@amueller : Thank you ! Do you handle the case where you have to predict the proba for an unknown class (that occurs when your target contains only one sample from a given class, otherwise it's ok if you stratify...) ?

from mlbox.

AxeldeRomblay avatar AxeldeRomblay commented on May 10, 2024

Also, I thought that cross_val_score used to crash (or still crashes ?) if a given class contains less samples than n_splits. Please tell me if I am wrong...

from mlbox.

amueller avatar amueller commented on May 10, 2024

from mlbox.

AxeldeRomblay avatar AxeldeRomblay commented on May 10, 2024

Ok ! I will have a try then. Thank you ! Also please feel free to open an issue for any suggestions ;)

from mlbox.

AxeldeRomblay avatar AxeldeRomblay commented on May 10, 2024

I will modify it for drift_estimator.py, but for stacking_classifier.py I really need to handle the case where the target contains only one sample from a given class. I can't afford to delete this sample and then call cross_val_predict(method="predict_proba") due to shape compatibility issues...

from mlbox.

amueller avatar amueller commented on May 10, 2024

If I understand your problem correctly, this will be fixed in scikit-learn/scikit-learn#9585. Feel free to wait for that ;)

from mlbox.

amueller avatar amueller commented on May 10, 2024

Sorry I meant scikit-learn/scikit-learn#9532

from mlbox.

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.