Machine Learning

Linear regression with one variable - Model Representation

뚜둔뚜둔 2022. 5. 3. 16:22

 Coursera lecture summary 

Model Representation

To estabkusg itauib for future use, we 'll use x(i) to denote the "input" baribles(livibg area in the example), also called input features, and y(i) ti 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 datset that we'll ve using th 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 to denote the space of input values, and Y to denote the space of output values. in this example, X = Y = R.

 

To describe the supervised learning problem slightly more formally, oru 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 hitorucal reasons, this function h is called a hypothesis. Seen pictorialy, the process is therefore like this:

 

 

 

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 problem. When y can take on only a small number of discrete values (such as if, given the living area, we wanted to predict if a dwelling is a house or an apartment, say), we call it a classification problem.

반응형