learn-co-curriculum / dsc-ridge-and-lasso-regression Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The following sentence appears under the heading 'Penalized Estimation':
"Now, instead of completely "deleting" certain predictors from a model (which is equal to setting coefficients equal to zero), wouldn't it be interesting // so-called penalized estimation operates in a way where parameter shrinkage effects are used to make some or all of the coefficients smaller in magnitude, closer to zero.'
I have inserted '//' to indicate where the two incomplete sentences are combined.
https://github.com/learn-co-curriculum/dsc-ridge-and-lasso-regression
the equations are broken
https://learning.flatironschool.com/courses/6223/assignments/226623?module_item_id=529510
$$ \sum_{i=1}^n(y_i - ((m_1x_{1i})-b)^2 + \lambda m_1^2 + (m_2x_{2i})-b)^2 + \lambda m_2^2)$$
The formula is missing a parenthesis. It makes it unclear which part should be in the summation function and which part should not be summed. Also, nowhere in the lesson is it noted what p is. I'm guessing it is the number of parameters, but if so, the same variable should be used for both sums (k is used earlier). If it is different, then the text should note 'where p is ...'.
Upon another look at the formula and in an attempt to work it out myself from the base formula with k=2, I don't believe this the above correct (although there is a real possibility I'm doing my math incorrectly). See below for what I think the formula might actually be?
$$ \sum_{i=1}^n(y_i - m_1x_{1i} - m_2x_{2i} -b)^2 + \lambda m_1^2 + \lambda m_2^2)$$
Let me know if I'm wrong + if so why! I'm always happy to be wrong as long as it helps me learn :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.