Note for video machine learning and Data Mining -- Linear Model

Source: Internet
Author: User

Here is the note for lecture three.

The Linear Model
Linear Model is a basic and important model in machine learning.

1. Input Representation

The data we get usually needs some changes, most of them is the input data.
In linear model,
Input = (x1, x2, X3, X4, x5... XN)
Then the model will be
Model = (W1, W2, W3, W4, w5... wn)
That means we shoshould use our learning algorithm to figure out the value of all these ws. So it is clear that trying
Do the input representation is necessary. Trying to pick out some features of the input as input representation.

2. Linear Classification

When it comes to classification, linear model will be taken into consideration. learning algorithm uses lines to classify .\
Giving a linear model, we provide the input, and then classification will be got by the output. eg. y = f (x); if f (x)> 0 and F (x') <0
Then X and X' belong to different parts.
As it mentions above, in linear model, there will be the same parameters as the input. So how to come out a correct model?
There is a basic learning algorithm called perceptron learning algorithm, it's pla. in PLA, there will be an initial model.
And learning algorithm will fix it up according to the verification of its data. Therefore, PLA is a algorithm that getting
Final hypothesis by several verifications.
So we can get linear model by PLA.

3. Linear Regression

What is linear regression? In fact, it is really common to us. Regression equals a real valued output, if you have a real
Valued funtion, then you get a linear regression problem. Sometimes we need a linear model to deal with a linear regression
Problem.
I come up with a model now.

The W and X are vector form. And I need figure out w to finish this model.
In fact, the problem have a really simple way to deal with. First, let us discuss with the error. f (x) is our target function,
And we hope h (x) approximate f (x) as well as possible. However, there must be errors. We use square error in linear model, if E means error, then

X, Y, W are vectors.
Of course, we want to minmize E. So we get derivate and equate it with 0



Well, as you see, we figure out w with matrix operation. (X and Y are the input data and output data we have got) Is it a simple method?

And finally, the linear regression can be used in Linear classification. In Linear classification, the initial model cocould be fixed
Out by Method Used in linear regression, and completed by PLA.

Note for video machine learning and Data Mining -- Linear Model

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.