Coder Social home page Coder Social logo

Comments (3)

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

Hi,

When I try to run elastic net in PiML, I can get an r2 value and other global interpretability metrics, but when I try to look at the influence of individual predictors, I see that the model has removed each predictor. When running code in sklearn that should give identical results, elastic net does not remove all of the predictors. I am not sure what is going on here. Perhaps it is some kind of bug?

Thank you

Hi @xloffree , Can you offer the code you used? Then I can do the test for answering your question. Thanks

from piml-toolbox.

xloffree avatar xloffree commented on June 14, 2024

Screenshot (313)
Screenshot (312)
Screenshot (311)
Screenshot (310)
Screenshot (309)

As you can see, I am running elastic net in PiML and sklearn. I should be getting the same results, or at the very least, PiML elastic net should not be removing every predictor.

from piml-toolbox.

ZebinYang avatar ZebinYang commented on June 14, 2024

Hi @xloffree,

Note that the data used by PiML is preprocessed to be within 0 and 1.
If you want to get the same results as sklearn's ElasticNest, please fit the model using the data preprocessed by PiML.

train_x, train_y, sample_weight_train = exp.get_data(train=True)

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.