版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 Linear r egressionwith o ne v ariable Modelrepresenta6on Machine L earning 100 200 300400 500 050010001500200025003000Housing P rices (Portland, O RPrice (in 1000s of d ollars Size (feet 2Supervised L earningGiven t he “right a nswer” f or each e xample i n t he d ata.Regression P roblemPredict r e
2、al-valued o utputNota6on:m = N umber o f t raining e xamples x s = “input” v ariable / f eaturesy s = “output” v ariable / “target” v ariableSize i n f eet 2 (x Price ($ i n 1000's (y 2104 460 1416 232 1534 315 852 178 Training s et o f housing p rices (Portland, O R Training S etLearning
3、A lgorithmhSize o f houseEs6mated priceHow d o w e r epresent h ?Linear r egression w ith o ne v ariable. Univariate l inear r egression. Cost f unc6onMachine L earningLinear r egression with o ne v ariable How t o c hoose s ?Training S etHypothesis:s: P arameters Size i n f eet 2 (x Price ($ i n 10
4、00's (y 2104 460 1416 232 1534 315 852 178 0 1 2 3 01230 1 2 3 01230 1 2 3 0123 yxIdea: C hoose s o t hati s c lose t o f or o urtraining e xamples Cost f unc6on intui6on IMachine L earningLinear r egression with o ne v ariable Hypothesis: Parameters: Cost F unc6on: Goal: Simplied 1230 1 2 3yx(f
5、or xed , t his i s a f unc6on o f x (func6on o f t he p arameter 123-0.5 0 0.5 1 1.5 2 2.5 1230 1 2 3yx(for xed , t his i s a f unc6on o f x (func6on o f t he p arameter 123-0.5 0 0.5 1 1.5 2 2.5 12 3 -0.5 0 0.5 1 1.5 2 2.5yx(for xed , t his i s a f unc6on o f x (func6on o f t he p
6、 arameter 0 1 2 312 3 Cost f unc6on intui6on I IMachine L earningLinear r egression with o ne v ariableHypothesis: Parameters: Cost F unc6on: Goal: (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters 01002003004005000 1000 2000 3000Price ($ in1000s Size i n f eet 2 (x (for xed , t hi
7、s i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters Gradient descentMachine L earning Linear r
8、egression with o ne v ariableHave s ome f unc6on Want Outline: Start w ith s omeKeep c hanging t o r educeun6l w e h opefully e nd u p a t a m inimum1 0J(0,101 J(0,1Gradient d escent a lgorithm Correct: S imultaneous u pdate Incorrect: Gradient d escentintui6on Machine L earning Linear r egression w
9、ith o ne v ariableGradient d escent a lgorithm If i s t oo s mall, g radient d escent can b e s low.If i s t oo l arge, g radient d escent can o vershoot t he m inimum. I t m ay fail t o c onverge, o r e ven d iverge. at l ocal o p6ma Current v alue o f Gradient d escent c an c onverge t o a l ocal
10、minimum, e ven w ith t he l earning r ate xed.As w e a pproach a l ocalminimum, g radientdescent w ill a utoma6callytake s maller s teps. S o, n oneed t o d ecrease o ver6me. Gradient d escent f orlinear r egression Machine L earning Linear r egression with o ne v ariableGradient d escent a lgorithm
11、 Linear R egression M odel Gradient d escent a lgorithm updateandsimultaneously10J(0,101J(0,1 (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (f
12、or xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed , t his i s a f unc6on o f x (func6on o f t he p arameters (for xed ,
13、;this is a func6on of x (func6on of the parameters Andrew Ng (for xed
14、160; , this is a func6on of x (func6on of the parameters Andrew Ng (for xed , this is a func6on of x (func6on of the parameters
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025安徽艺术职业学院高层次人才招聘10人备考考试试题及答案解析
- 2025四川攀枝花市西区统计局招聘临聘工作人员1人笔试备考重点题库及答案解析
- 汽车设计工程师面试常见问题及答案参考
- 2025年都兰县妇幼保健和备考题库生育服务中心招聘(编制外)公共卫生专业技术人员的备考题库及一套完整答案详解
- 2025年鄂尔多斯市委政法委所属事业单位引进高层次人才备考题库及一套完整答案详解
- 中广核电站工作人员辐射安全考试题集
- 西充县人力资源和社会保障局西充县2025年下半年部分县级事业单位公开考调工作人员备考题库及参考答案详解1套
- 网络安全保密技术员岗位笔试技巧含答案
- 2025年山西晋中理工学院春季招聘备考题库及答案详解参考
- 人力资源总监招聘培训面试题及答案
- 电缆路径检测协议书
- 《烹饪工艺学》期末考试复习题库(附答案)
- 片区供热管网连通工程可行性研究报告
- 课件《法律在我身边》
- 2025年文职仓库保管员考试题及答案
- 2026年湖南铁道职业技术学院单招职业技能考试必刷测试卷附答案
- 2025年重庆市大渡口区事业单位考试试题
- 管道施工围挡施工方案
- 城市绿化生态修复项目实施方案
- 西藏酥油茶的课件
- 安装预制检查井施工方案
评论
0/150
提交评论