热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

MachineLearning

NotesofCoursera-MachineLearning-AndrewNGWeek1-20140307-hphp欢迎赐教、讨论、转载,转载请注明原文地址~MachineL

face="微软雅黑">Notes
of Coursera-MachineLearning-Andrew NG




data-wiz-span="data-wiz-span">Week1-2014/03/07-hphp
data-wiz-span="data-wiz-span">

data-wiz-span="data-wiz-span">欢迎赐教、讨论、转载,转载请注明原文地址~


data-wiz-span="data-wiz-span">Machine Learning
Introduction



  • Many
    Application


    • Amazon , Netflix
      recommend system 

    • data-wiz-span="data-wiz-span"> data-wiz-span="data-wiz-span">Arthur Samuel, made a machine learn how to
      check. checkers , 
      made
      a program play chess with itself , and know better of how to win
      .

  • Popular


    • data-wiz-span="data-wiz-span">and  >well .. currently large demands
      of talents. as one of the 
      top
      12 computer skill

  • Different types of
    learning algorithms


    • data-wiz-span="data-wiz-span"> data-wiz-span="data-wiz-span">famous partial methods
      >supervised learning ,
      unsupervised learning,

  • Main Goal


    • how to develop the best
      machine learning systems to get better performance.

data-wiz-span="data-wiz-span">Supervise
learning

face="微软雅黑">how
to pick a model ? straight line or polynomial


  • >Regression:
    Predict continous valued output

  • >Classification
    problem  ,


    • >tumor size Vs
      malignant

    • >Tumor size ,
      age , Vs malignant or benign ,

    • >c color="#009300">ould
      use more features to predict ( or regression ) : uniformity of cell shape ,
      cell size ......

  • >Statistically

  • >compromized :
    妥协的


data-wiz-span="data-wiz-span">Unsupervised
Learningdata-wiz-span="data-wiz-span">?


bubuko.com,布布扣 >


  • >clustering
    problem


    • >google news ,
      with one news , several diff urls are laid.

bubuko.com,布布扣 align="" src="https://img.php1.cn/3cd4a/189d8/978/7dbdf0f38ad53545.jpeg"
>



    • >astronomical
      data analysis

  • >Cocktail party
    problem


    • >seperate voice
      source

    • bubuko.com,布布扣 align="" src="https://img.php1.cn/3cd4a/189d8/b64/5b34b53b79a39fdd.jpeg"
      >

    • use
      octave , could solve the problem quickly and briefly


data-wiz-span="data-wiz-span">Linear Regression with
one variable




  • Model
    representation


bubuko.com,布布扣 >




Training
set : m : number of training examples , x :  input , y : output
variable ,


data-wiz-span="data-wiz-span">y = h(x) , h
hypothesis



data-wiz-span="data-wiz-span">How do we represent
H?





face="微软雅黑"> data-wiz-span="data-wiz-span">htheta(x) = theta0 +
theta1(x)




data-wiz-span="data-wiz-span">univariant -- linear
regression (a fancy name)




  • Cost
    Function




data-wiz-span="data-wiz-span">htheta(x) = theta0 +
theta1(x)




data-wiz-span="data-wiz-span">how to choose two
theta s


bubuko.com,布布扣 >




data-wiz-span="data-wiz-span">choose thetas so that
h(x) is close to given
examples.




 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
 
  
  >m



data-wiz-span="data-wiz-span">minimize   
  =   1/2m Sum ( h(xi) - yi
) 2



data-wiz-span="data-wiz-span">theta0, theta 1
          
 
  
1


bubuko.com,布布扣 >




face="微软雅黑"> data-wiz-span="data-wiz-span">squared error function  -- the most
common coss function in regression
.


  • >Cost function
    intuition I - lecture 7

color="#ff6820" face="微软雅黑">get
better intuition what cost function is doing , and why we want to use
it.




data-wiz-span="data-wiz-span">recap : focus , say
briefly


bubuko.com,布布扣 >




data-wiz-span="data-wiz-span">simplified : theta 0
= 0



data-wiz-span="data-wiz-span">h(x) = theta1 *
x



data-wiz-span="data-wiz-span">J(theta1)  =
1/2m * Sum[i:1-m](theta1xi - yi) 2



data-wiz-span="data-wiz-span">when theta1 = 1
J
( theta1 ) = 0



data-wiz-span="data-wiz-span">theta1 = 0.5 , J (
theta1 ) = 0.5 , J ( 0 ) =
14/6 


bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/189d8/b64/5b34b53b79a39fdd.jpeg"
>



  • Cost
    function intuition II - lecture 8

bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/ed19db63ee478b98.png"
>


basic situation







    • contour
      plots : outline

    • theta0,
      theta1 != (0, x) or (x, 0) , with the cost function act as a 3D bowl ,
      below



bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/bcafc120671304eb.webp"
>



    • using : contour plots (
      or contour figures ) .

bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1e618/cd5/af17da15769ccb2e.jpeg"
>


data-wiz-span="data-wiz-span">? using such data , and such model , we could see
that there a circle of "similar" point pairs of ( theta0, theta1)
,

data-wiz-span="data-wiz-span"> on which they act the same, so , can we tell
the difference of different pairs ?




  • Gradient
    descent algorithm


    • it
      is used all over machine learning

    • >could
      minimizing arbitrary functions besides cost function

    • Basic
      Thoughts






bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1e618/bdf/129913486c37ddf6.jpeg"
- surface
->
bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/d67981797265d9c7.webp"
>



    • data-wiz-span="data-wiz-span">EG: start at some point on the
      surface, 
      data-wiz-span="data-wiz-span">    

bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/ff61bfdd3c0af92e.webp"
>
data-wiz-span="data-wiz-span"> VS 
bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/8373b1277127c518.webp"
>
data-wiz-span="data-wiz-span"> 



    • data-wiz-span="data-wiz-span">==>  data-wiz-span="data-wiz-span">start with diff
      starts , end in diff ends.[it is a property of Gradient descent algorithm
      ]

    • data-wiz-span="data-wiz-span">detailed
      description 

bubuko.com,布布扣border="0" src="https://img.php1.cn/3cd4a/1eebe/cd5/8170a21e8dddfd22.webp"
>






      • data-wiz-span="data-wiz-span">alpha : learning rate [ if alpha is large ,
        aggressive ]

      • data-wiz-span="data-wiz-span">calculus and derivative

      • data-wiz-span="data-wiz-span">keep in mind : data-wiz-span="data-wiz-span">
        simultaneously
        data-wiz-span="data-wiz-span">, at the same
        time




来自为知笔记(Wiz)


MachineLearning,布布扣,bubuko.com


推荐阅读
  • 本文介绍了如何使用PHP向系统日历中添加事件的方法,通过使用PHP技术可以实现自动添加事件的功能,从而实现全局通知系统和迅速记录工具的自动化。同时还提到了系统exchange自带的日历具有同步感的特点,以及使用web技术实现自动添加事件的优势。 ... [详细]
  • HDU 2372 El Dorado(DP)的最长上升子序列长度求解方法
    本文介绍了解决HDU 2372 El Dorado问题的一种动态规划方法,通过循环k的方式求解最长上升子序列的长度。具体实现过程包括初始化dp数组、读取数列、计算最长上升子序列长度等步骤。 ... [详细]
  • 本文讨论了如何优化解决hdu 1003 java题目的动态规划方法,通过分析加法规则和最大和的性质,提出了一种优化的思路。具体方法是,当从1加到n为负时,即sum(1,n)sum(n,s),可以继续加法计算。同时,还考虑了两种特殊情况:都是负数的情况和有0的情况。最后,通过使用Scanner类来获取输入数据。 ... [详细]
  • 本文介绍了OC学习笔记中的@property和@synthesize,包括属性的定义和合成的使用方法。通过示例代码详细讲解了@property和@synthesize的作用和用法。 ... [详细]
  • 1,关于死锁的理解死锁,我们可以简单的理解为是两个线程同时使用同一资源,两个线程又得不到相应的资源而造成永无相互等待的情况。 2,模拟死锁背景介绍:我们创建一个朋友 ... [详细]
  • 《数据结构》学习笔记3——串匹配算法性能评估
    本文主要讨论串匹配算法的性能评估,包括模式匹配、字符种类数量、算法复杂度等内容。通过借助C++中的头文件和库,可以实现对串的匹配操作。其中蛮力算法的复杂度为O(m*n),通过随机取出长度为m的子串作为模式P,在文本T中进行匹配,统计平均复杂度。对于成功和失败的匹配分别进行测试,分析其平均复杂度。详情请参考相关学习资源。 ... [详细]
  • 动态规划算法的基本步骤及最长递增子序列问题详解
    本文详细介绍了动态规划算法的基本步骤,包括划分阶段、选择状态、决策和状态转移方程,并以最长递增子序列问题为例进行了详细解析。动态规划算法的有效性依赖于问题本身所具有的最优子结构性质和子问题重叠性质。通过将子问题的解保存在一个表中,在以后尽可能多地利用这些子问题的解,从而提高算法的效率。 ... [详细]
  • 高质量SQL书写的30条建议
    本文提供了30条关于优化SQL的建议,包括避免使用select *,使用具体字段,以及使用limit 1等。这些建议是基于实际开发经验总结出来的,旨在帮助读者优化SQL查询。 ... [详细]
  • 本文介绍了lua语言中闭包的特性及其在模式匹配、日期处理、编译和模块化等方面的应用。lua中的闭包是严格遵循词法定界的第一类值,函数可以作为变量自由传递,也可以作为参数传递给其他函数。这些特性使得lua语言具有极大的灵活性,为程序开发带来了便利。 ... [详细]
  • 基于layUI的图片上传前预览功能的2种实现方式
    本文介绍了基于layUI的图片上传前预览功能的两种实现方式:一种是使用blob+FileReader,另一种是使用layUI自带的参数。通过选择文件后点击文件名,在页面中间弹窗内预览图片。其中,layUI自带的参数实现了图片预览功能。该功能依赖于layUI的上传模块,并使用了blob和FileReader来读取本地文件并获取图像的base64编码。点击文件名时会执行See()函数。摘要长度为169字。 ... [详细]
  • 本文介绍了使用Java实现大数乘法的分治算法,包括输入数据的处理、普通大数乘法的结果和Karatsuba大数乘法的结果。通过改变long类型可以适应不同范围的大数乘法计算。 ... [详细]
  • 本文介绍了C#中数据集DataSet对象的使用及相关方法详解,包括DataSet对象的概述、与数据关系对象的互联、Rows集合和Columns集合的组成,以及DataSet对象常用的方法之一——Merge方法的使用。通过本文的阅读,读者可以了解到DataSet对象在C#中的重要性和使用方法。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • 本文详细介绍了Linux中进程控制块PCBtask_struct结构体的结构和作用,包括进程状态、进程号、待处理信号、进程地址空间、调度标志、锁深度、基本时间片、调度策略以及内存管理信息等方面的内容。阅读本文可以更加深入地了解Linux进程管理的原理和机制。 ... [详细]
  • Java验证码——kaptcha的使用配置及样式
    本文介绍了如何使用kaptcha库来实现Java验证码的配置和样式设置,包括pom.xml的依赖配置和web.xml中servlet的配置。 ... [详细]
author-avatar
手机用户2502895293
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有