GithubHelp home page GithubHelp logo

scikit-bonus's People

Contributors

garve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scikit-bonus's Issues

SimpleTimeFeatures?

Hi
This looks great. I see you have lots of very cool functionality implemented. Could you push the SimpleTimeFeatures, please? I assume it would go into skbonus.preprocessing.time?

Thanks!

ExplainableBoostinMetaRegressor - Isotonic ymin issues

This is incredible. It works really well with Isotonic regression to add monotonic constraints to the EBM. The one place is doesn't work as expected is with the positivity constraint ymin=0. This restricts the model to a minimum value that is equal to the intercept.

Clearly, this totally makes sense mathematically. What it highlights is that there might be a better way to calculate the intercept so that is not an issue. Possibly, self.mean_ = y.min() in this strictly positive context?

Currently, in the EBM and your mEBM, the simplest solution is to do a constant shift in the y-axis from the minimum value to zero, for each variable, and then update the intercept accordingly:

mins = [np.min(feat) for feat in mebm.outputs_]
mebm.outputs_ = [feat - m for feat, m in zip(mebm.outputs_, mins)]
mebm.mean_ = mebm.mean_ + np.sum(mins)

Anyway, amazing stuff and hopefully these findings/issues/solutions are useful ๐Ÿ˜„

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.