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.

                                      

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveXVtYW8xOTkyMTAwNg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

   
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



                                   

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQveXVtYW8xOTkyMTAwNg==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

                                 

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?



   
 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.

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

  1. 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 th ...

  2. Machine Learning and Data Mining Lecture 1

    Machine Learning and Data Mining Lecture 1 1. The learning problem - Outline     1.1 Example of mach ...

  3. 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, ...

  4. Machine Learning and Data Mining(机器学习与数据挖掘)

    Problems[show] Classification Clustering Regression Anomaly detection Association rules Reinforcemen ...

  5. machine learning(14) --Regularization:Regularized linear regression

    machine learning(13) --Regularization:Regularized linear regression Gradient descent without regular ...

  6. Machine Learning - week 2 - Multivariate Linear Regression

    Multiple Features 上一章中,hθ(x) = θ0 + θ1x,表示只有一个 feature.现在,有多个 features,所以 hθ(x) = θ0 + θ1x1 + θ2x2 + ...

  7. Andrew Ng 的 Machine Learning 课程学习 (week2) Linear Regression

    这学期一直在跟进 Coursera上的 Machina Learning 公开课, 老师Andrew Ng是coursera的创始人之一,Machine Learning方面的大牛.这门课程对想要了解 ...

  8. Machine Learning and Data Science 教授大师

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

  9. Machine Learning、Date Mining、IR&NLP 会议期刊论文推荐

    核心期刊排名查询 http://portal.core.edu.au/conf-ranks/ http://portal.core.edu.au/jnl-ranks/ 1.机器学习推荐会议 ICML— ...

随机推荐

  1. (08)DBA写给开发的索引经验

          索引可是个大事情,翻开任意一本数据库调优的书,索引都会占到比较大的篇幅.这是个人人都很重视的问题,可往往起始阶段还好,但数据库到最后常常还是会陷入由索引起的性能怪圈中.特别是在上线运行过一 ...

  2. QString ini ;转义符

    ini如果value字符串中存在:,通过双引号即可转义 [a] b=sdc";"gf

  3. 基于visual Studio2013解决面试题之0702输出数字

     题目

  4. oracle如何设置show parameter显示隐含参数

    在sqlplus中shwo parameter是显示不了隐藏参数的,需要做一个处理,如下所示:    以SYS用户登录: C:\Documents and Settings\guogang>sq ...

  5. Round Numbers

    转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1301472836 大致题意: 输入两个十进制正整数a和b,求闭区间 [a ,b] 内有多少 ...

  6. Kendo UI开发教程(20): Kendo MVVM 数据绑定(九) Text

    Text绑定可以使用ViewModel来设置DOM元素的文本属性,如果需要设置input,textarea,或select的显示,需要使用value属性. 1 <span data-bind=& ...

  7. JAVA中字符串比較equals()和equalsIgnoreCase()的差别

    .使用equals( )方法比較两个字符串是否相等.它具有例如以下的一般形式: boolean equals(Object str) 这里str是一个用来与调用字符串(String)对象做比較的字符串 ...

  8. C中的几组指针

    1.二维数组 下面就三种二维数组进行说明. 1: int **Ptr; 2: int *Ptr[ 5 ]; 3: int ( *Ptr )[ 5 ]; 以上三例都是整数的二维数组,都可以用形如 Ptr ...

  9. Mac下添加java环境变量

    2015年4月22号更新: 发现一个坑:最近发现有同事按照本文方式配置jdk环境变量一直不成功,后来发现他是使用了“Oh-My-Zsh”,配置文件的路径不是/etc/profile或~/.bash_p ...

  10. uploadfiy使用

    动态加参数:$("#file_upload").uploadify("settings", "formData", { knowledgeI ...