Machine learning week 1 notes

New Vocabularies:
algorithm: 算法
regression:回归
cluster: 聚类, clustering algorithm:聚类算法
contour plots/figure:轮廓图
assignment:赋值

Definition:
“A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E.”
随着学习进程E的进行,由评测标准P打分所完成任务T的得分有着显著的提高。
In general, any machine learning problem can be assigned to one of two broad classifications:
Supervised learning and Unsupervised learning.

Content:
Supervised Learning:

  1. Regression: For continuous valued output
  2. Classification: For discrete valued output (usually to show different types like 0 for benign and 1 for harmful.

Unsupervised Learning:

  1. Unsupervised learning allows us to approach problems with little or no idea what our results should look like.
  2. Can derive this structure by clustering the data based on relationships among the variables in the data.
  3. no feedback based on the prediction results.
  4. Example:
    Clustering: Take a collection of 1,000,000 different genes, and find a way to automatically group these genes into groups that are somehow similar or related by different variables, such as lifespan, location, roles, and so on.
    Non-clustering: The “Cocktail Party Algorithm”, allows you to find structure in a chaotic environment. (i.e. identifying individual voices and music from a mesh of sounds at a cocktail party).

1.Model Representation:
Presentation: 在这里插入图片描述
i means the sequences of x or y in training set.
m is called training set presenting the number of samples.
在这里插入图片描述

2. Cost Function
在这里插入图片描述

  1. Definition:
    在这里插入图片描述Applying cost function to measure the accuracy of hypothesis.表示拟合的贴近程度。
    Why 2m not m?
    Because the result of optimisation of cost function is the same, that means we can get same optimisation parameter regard less 2m or m.
    Applying gradient descent method to differentiate it we get:
    在这里插入图片描述
    1/m is better for calculation.

  2. Graphic Presentation
    在这里插入图片描述

  3. Details
    one parameter:
    在这里插入图片描述
    two parameters:
    在这里插入图片描述
    inner part of contour plots means the effect is better with small number J.

3. Gradient Descent
在这里插入图片描述

DETAILS:
在这里插入图片描述
a: learning rate(length of steps)

在这里插入图片描述
When specifically applied to the case of linear regression, a new form of the gradient descent equation can be derived. We can substitute our actual cost function and our actual hypothesis function and modify the equation to:在这里插入图片描述

Batch Gradient Descent:
Using all data in the set.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值