Note for video Machine Learning and Data Mining——Linear Model

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 should use our learning algorithm to figure out the value of all these ws. So it is clear that trying to

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 could be fixed

out by method used in linear regression, and completed by PLA.

时间: 2024-10-08 20:50:29

Note for video Machine Learning and Data Mining——Linear Model的相关文章

Note for video Machine Learning and Data Mining——training vs Testing

Here is the note for lecture five. There will be several points 1. Training and Testing Both of these are about data. Training is using the data to get a fine hypothesis, and testing is not. If we get a final hypothesis and want to test it, it turns

How do you explain Machine Learning and Data Mining to non Computer Science people?

How do you explain Machine Learning and Data Mining to non Computer Science people? Pararth Shah, ML Enthusiast Answered Dec 22, 2012 · Featured on VentureBeat · Upvoted by Melissa Dalis, CS & Math major at Duke and Alberto Bietti, PhD student in mac

Machine learning and data mining

Problems: Classification, Clustering, Regression, Anomaly detection, Association rules, Reinforcement learning, Structurd prediction, Feature learning, Online learning, Semi-supervised learning, Grammar induction Supervised learning: Decision trees,

machine learning(13) --Regularization:Regularized linear regression

machine learning(13) --Regularization:Regularized linear regression Gradient descent without regularization                    with regularization                     θ0与原来是的没有regularization的一样 θ1-n和原来相比会稍微变小(1-αλ⁄m)<1 Normal equation without regular

Machine Learning - week 2 - Multivariate Linear Regression

Gradient Descent in Practice - Feature Scaling Make sure features are on a similar scale. Features 的范围越小,总的可能性就越小,计算速度就能加快. Dividing by the range 通过 feature/range 使每个 feature 大概在 [-1, 1] 的范围内 下题是一个例子: Mean normalization 将值变为接近 0.除了 x0,因为 x0 的值为 1. mu

Machine Learning and Data Science 教授大师

http://www.cs.cmu.edu/~avrim/courses.html Foundations of Data Science Avrim Blum, www.cs.cornell.edu/jeh/bookJan25_2016.pdf

Awesome Machine Learning

Awesome Machine Learning  A curated list of awesome machine learning frameworks, libraries and software (by language). Inspired by awesome-php. If you want to contribute to this list (please do), send me a pull request or contact me @josephmisiti Als

Optimization and Machine Learning(优化与机器学习)

这是根据(ShanghaiTech University)王浩老师的授课所作的整理. 需要的预备知识:数分.高代.统计.优化 machine learning:(Tom M. Mitchell) "A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P if its performance at tasks in T,

(转)8 Tactics to Combat Imbalanced Classes in Your Machine Learning Dataset

8 Tactics to Combat Imbalanced Classes in Your Machine Learning Dataset by Jason Brownlee on August 19, 2015 in Machine Learning Process Has this happened to you? You are working on your dataset. You create a classification model and get 90% accuracy