Code Monkey home page Code Monkey logo

Comments (4)

liganega avatar liganega commented on May 23, 2024 1

Hi @UPstartDeveloper, thank you for your comment. It really solves my original question about adding 1/m factor to the Ridge case.

On the other hand, why the difference between 2*alpha and alpha in case of Elastic net is necessary is still not quite clear. Probably it just works better that way. That is, more weight on the Lasso part makes models work better.

from handson-ml3.

liganega avatar liganega commented on May 23, 2024

For me it's always been a mysterious whether it would help calculate faster/better to use any kind of constant factor such as 2, 1/m or 1/2 because, I think, theta_i would adapt to it anyway.

from handson-ml3.

liganega avatar liganega commented on May 23, 2024

The confusing points makes suddenly sense when the Elastic Net is considered. The weight of alpha is different in each penalty.

ν™”λ©΄ 캑처 2022-04-18 235530

Althought now the confusion is gone, it is still not so obvious why it works better that way.

from handson-ml3.

UPstartDeveloper avatar UPstartDeveloper commented on May 23, 2024

Hi @liganega, I think part of your answer was covered in this issue in the previous Hands-On ML repo.

from handson-ml3.

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.