preface

Welcome to my blog.
For many reasons ,i decided to write [machine learning]’s learning notes blog with English,just simple English.
With the updating of my blog,i will also update this preface,especially for notations explain.


The notes are just for my study of machine learning course provided by Stanford University taught by Andrew.you can find the course videos at
http://open.163.com/special/opencourse/machinelearning.html,
also,you can download lecture notes and homework at
http://cimg3.163.com/edu/open/ocw/jiqixuexikecheng.zip
As for ML,in my view,is a application technology of statistics and probability theory ,which using linear algebra for computation,and as a kind of math tool to help us solve kinds of problems,such as big data,medical statistic,automatic driving and etc.


The notations using in this course are:

  • m : the number of training examples
  • x: input variable
  • y: output variable
  • n: the number of x(features)
  • (x,y): a single training example
  • ( xi , yi ):the i th training example

n maybe be confused notation.
here is an example:
If we have a dataset of house price

areaprice
2104400
1600330
2400369

In the linear regression,we made the hypothesis function:

hθ(x)=θ0x0+θ1x1
where x0=1 , x1 means the area of the house.

Hence,m=3,
( x1 , y1 )=(2104,400),and n=1,because we only have one feature that is the area of the house.As for x and y,for instance,if we fit the parameters of the hypothesis function according these 3 training example,so that we can predict the price by given area,so,the given area is x,and the predicted price is y.

But in realistic,the effect factor may be more than the area,for example ,may contain the number of the bedrooms or others,now we have the datasat :

areaNumber of bedroomprice
21043400
16003330
24003369

Also,we update the our hypothesis function:
hθ(x)=θ0x0+θ1x1+θ2x2
where x0=1 , x2 means the area of the house, x1
means the number of the bedrooms,
Hence,m=3
( x1 , y1 )=([ x11 x12 ], y1 )=([2104 3],400),where x is a vector,
n=2,because we have two features,area and number of the bedrooms.


BTW,mathjax is very strange but intreresting.neither way,i like mathtpye.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值