Return to Video

Lasso Coefficients Solution - Intro to Machine Learning

  • 0:00 - 0:04
    I told you this was a tough quiz because we hadn't actually done this before.
  • 0:04 - 0:07
    So hopefully you were able to find it on the documentation page or
  • 0:07 - 0:08
    on the internet somewhere.
  • 0:08 - 0:12
    And so the way that you get the coefficients of a Lasso regression or
  • 0:12 - 0:17
    of any regression really is by calling .coef_ on
  • 0:17 - 0:21
    your regression, which in our case just has the name regression.
  • 0:21 - 0:25
    So if you call this print statement, it's going to give you a list that
  • 0:25 - 0:28
    contains all of the coefficients that have been found by your regression.
  • 0:28 - 0:32
    So you can look at this list now, and you can figure out which features have
  • 0:32 - 0:36
    the large coefficients, which means they're important features, and
  • 0:36 - 0:38
    which ones have the coefficients that are set to very small values.
Title:
Lasso Coefficients Solution - Intro to Machine Learning
Description:

11-26 Lasso_Coefficients_Solution

more » « less
Video Language:
English
Team:
Udacity
Project:
ud120 - Intro to Machine Learning
Duration:
0:40

English subtitles

Revisions Compare revisions