Preview

Cs229

Good Essays
Open Document
Open Document
9150 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Cs229
CS229 Lecture notes
Andrew Ng

Supervised learning
Lets start by talking about a few examples of supervised learning problems.
Suppose we have a dataset giving the living areas and prices of 47 houses from Portland, Oregon:
Living area (feet2 )
2104
1600
2400
1416
3000
.
.
.

Price (1000$s)
400
330
369
232
540
.
.
.

We can plot this data: housing prices
1000
900
800

price (in $1000)

700
600
500
400
300
200
100
0
500

1000

1500

2000

2500
3000
square feet

3500

4000

4500

5000

Given data like this, how can we learn to predict the prices of other houses in Portland, as a function of the size of their living areas?
1

2

CS229 Winter 2003

To establish notation for future use, we’ll use x(i) to denote the “input” variables (living area in this example), also called input features, and y (i) to denote the “output” or target variable that we are trying to predict
(price). A pair (x(i) , y (i) ) is called a training example, and the dataset that we’ll be using to learn—a list of m training examples {(x(i) , y (i) ); i =
1, . . . , m}—is called a training set. Note that the superscript “(i)” in the notation is simply an index into the training set, and has nothing to do with exponentiation. We will also use X denote the space of input values, and Y the space of output values. In this example, X = Y = R.
To describe the supervised learning problem slightly more formally, our goal is, given a training set, to learn a function h : X → Y so that h(x) is a
“good” predictor for the corresponding value of y . For historical reasons, this function h is called a hypothesis. Seen pictorially, the process is therefore like this:
Training
set

Learning algorithm x
(living area of house.) h

predicted y
(predicted price) of house)

When the target variable that we’re trying to predict is continuous, such as in our housing example, we call the learning problem a regression

You May Also Find These Documents Helpful

  • Good Essays

    Nt1320 Unit 7

    • 2041 Words
    • 9 Pages

    9) The ________ notation signifies that an adviser can be related to many students and that a student can be related to many advisers.…

    • 2041 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Cu2479

    • 439 Words
    • 2 Pages

    1.2 The data protection act is there to set standards and is law when obtaining, recording, holding, using or disposing of personal data. The Caldicott review coincides with the data protection act in the Health and social care.…

    • 439 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Organization- discovering the recognizable patterns in the stimulus and recoding them in a form that is simple enough to remember and use…

    • 449 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    v. The body of the class is contained within a set of braces, and typically consists of type declarations…which are often referred to as the data members of the class, method definitions, and sometimes even other class definitions.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Unit 9 Alvarez

    • 726 Words
    • 3 Pages

    References: Atomic Learning . (2015). EXCEL 2013. Retrieved January 19, 2015, from Atomic Learning Tutorials: www.atomiclearning.com/highed/excel-2013-formulas-functions?cn=KaplanKCEemployee…

    • 726 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Apfelbaum, E. P., Pauker, K., Ambady, N., Sommers, S. R., & Norton, M. I. (2008). Learning…

    • 638 Words
    • 3 Pages
    Good Essays
  • Good Essays

    To fulfill this learning outcome, use the following as your guide, to do the task above.…

    • 800 Words
    • 4 Pages
    Good Essays
  • Good Essays

    References: Schultz, K. M. (2012). HIST2, Volume 1 (2nd ed.). Boston, MA: Wadsworth, Cengage Learning.…

    • 349 Words
    • 2 Pages
    Good Essays
  • Good Essays

    1. In the first box you will identify one of Gagne’s Eight Distinctive Types of Learning.…

    • 869 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    INQUIRY LESSON PLANS

    • 1472 Words
    • 6 Pages

    Long-Term Unit Objective: The learner will add, subtract, multiply, and divide any two mixed numbers with unlike denominators.…

    • 1472 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Essay of favorite place

    • 516 Words
    • 3 Pages

    Describes the combined set of all letters in the alphabet and the numbers 0 through 9. It is useful to group letters and numbers together because many programs treat them identically, and differently from punctuation characters. For example, most operating systems allow you to use any letters or numbers in filenames but prohibit many punctuation characters. Your computermanual would express this rule by stating: "Filenames may be composed of alphanumeric characters."…

    • 516 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Draft Papers

    • 1282 Words
    • 6 Pages

    argument vector is compared to the training set to assign a topical analysis score to each argument. The value for this feature is a…

    • 1282 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    digital image processing

    • 7622 Words
    • 52 Pages

    nearest neighbors are modeled as a vector variable, whose training samples are selected from the local…

    • 7622 Words
    • 52 Pages
    Good Essays
  • Good Essays

    Number System

    • 1845 Words
    • 8 Pages

    also on its location in the number. It is used interchangeably with the term positional notation.…

    • 1845 Words
    • 8 Pages
    Good Essays