Comments (4)
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.
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.
The confusing points makes suddenly sense when the Elastic Net is considered. The weight of alpha is different in each penalty.
Althought now the confusion is gone, it is still not so obvious why it works better that way.
from handson-ml3.
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)
- [IDEA] Chapter 2, Reduce multiple FutureWarning(s) when using KMeans with sklearn 1.3.1
- [BUG] Chapter 2, CV splits are not random as opposed to what is written
- [IDEA] Chapter 2, Add code demonstrating HalvingRandomSearchCV
- [BUG] Ch07 - Bagging and Pasting in Scikit-Learn, import numpy
- [BUG] Ch08 - cmap wrong when plotting LLE figures HOT 1
- [BUG] Docker image issue. HOT 2
- [QUESTION] Error in chapter 15 (Forecasting Multivariate Time Series) HOT 5
- https://homl.info/colab3 HOT 1
- I can not find the solutions to the exercises at the end of each chapter going to https:///homl.info/colab3. Are they to be found elswhere? HOT 1
- [BUG] Chapter 2 OneHotEncoder Shape Mismatch Issue + Solution
- [BUG] Chapter 7 (07_ensemble_learning_and_random_forests) in Jupyter Notebook HOT 1
- [QUESTION] Chapter 4 Exercise Question 12 - cost function with l2 regularization seems incorrect HOT 2
- Pulling for GPU does not work HOT 3
- [IDEA] Consider changing variable name in chapter 5 notebook HOT 1
- [QUESTION] CHAP18 Can't find the TF-Agent part HOT 1
- [QUESTION] Clarification about likelihood and PDF HOT 1
- Chapter 16: Downloading Shakespeare model: I get exception downloading the shakespeare_model HOT 1
- [QUESTION] Chapter 14: Asking about GoogLeNet's archietcture
- [QUESTION] Chapter 2: Definition of `similarities` is subject to information leakage? HOT 2
- [QUESTION] Use of Normalization layer with keras_tuner
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handson-ml3.