Coder Social home page Coder Social logo

Comments (4)

CnBDM-Su avatar CnBDM-Su commented on June 13, 2024

@xloffree Hi, L1 and L2 should both be 0.217.
The example is attached.
image

from piml-toolbox.

xloffree avatar xloffree commented on June 13, 2024

I tried this and when I run model_explain it says that all coefficients are equal to zero. What is going on here? The elastic net worked fine with sklearn and with R. Is there something wrong?

Thank you

from piml-toolbox.

CnBDM-Su avatar CnBDM-Su commented on June 13, 2024

@xloffree Can you show the example to me? In my test, our GLM result is always same to the sklearn elasticnet.

from piml-toolbox.

xloffree avatar xloffree commented on June 13, 2024
Screenshot 2023-07-29 at 7 04 05 PM Screenshot 2023-07-29 at 7 04 17 PM Screenshot 2023-07-29 at 7 04 28 PM Screenshot 2023-07-29 at 7 04 51 PM Screenshot 2023-07-29 at 7 06 26 PM

When using GLMRegressor, I get very different results than from when I use the method shown in the README, which gives a very poor R2 and says all coefficients are 0. I am certain that this is wrong because we have run elastic net on this data in R and python and have gotten similar results that show a much better R2. The results from the glmRegressor look more reasonable. I am trying to use piml to compare many models at once on the same train/test split (the elastic net models with specific parameters included). We would like to use the results from PiML in an upcoming paper, but this problem with PiML's elastic net is preventing us from being able to do so. Please let me know if there is a solution to this.

Thank you

from piml-toolbox.

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.