Return to Video

Age/Net Worth Solution - Intro to Machine Learning

  • 0:01 - 0:03
    So here's the solution to this quiz in case you had any problems.
  • 0:04 - 0:07
    The first thing you have to do is import the sklearn regression module.
  • 0:07 - 0:11
    Of course it isn't quite this simple because it's called sklearn.linearmodel,
  • 0:11 - 0:14
    but you can figure this out from the documentation pretty easily.
  • 0:14 - 0:16
    There's a familiar linear regression function, and
  • 0:16 - 0:19
    I have my regression which I named reg.
  • 0:19 - 0:23
    Reg gets, linear regression, and
  • 0:23 - 0:26
    then I don't have to worry about parameters in this particular case, and
  • 0:26 - 0:29
    then the next thing to do is just to fit it the same as we did a classifier.
  • 0:29 - 0:34
    We do this of course on our training data, and of course now we have this
  • 0:34 - 0:38
    regression its been, trained on our training data and we're just returning it.
Title:
Age/Net Worth Solution - Intro to Machine Learning
Description:

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

English (United States) subtitles

Revisions