AI-015: 吴恩达教授(Andrew Ng)的机器学习课程学习笔记50-54

本文是学习Andrew Ng的机器学习系列教程的学习笔记。教学视频地址:

https://study.163.com/course/introduction.htm?courseId=1004570029#/courseDetail?tab=1

本节是新的监督学习分类算法:SVM-Support Vector Machines支持向量机

50. Support Vector Machines: Optimization objective

线性来近似出逻辑函数,得到SVM的代价函数,定义为cost_1(z), cost_0(z),see the mathematical definition:

51. Support Vector Machines : large margin intuition

suppose C is very large, the first part can be 0.

be subject to the constraint(s.t.)

you get a very interesting decision boundary.

margin of the support vector machine, this will give SVM a certain robustness. 鲁棒性

Because it tries to separate the data with as large margin as possible.

SVM will select the black line:

when you use large margin algorithm, you learning algorithm can be sensitive to outliers.

add a special point, will change to magenta one:

but if C ware reasonably small, still can get the black line:

in involving the regularization parameter to advance SVM

52. Support Vector Machines: The mathematics behind large margin classification

从向量内的几何算方式,推SVM决策界的几何表示,从而验证要想实现,必须让theta的范数最小,p最大,也就是实现距。

Pythagoras theorem 达哥拉斯定理即勾股定理

Square root 二次方根

p = length of the projection the vector v onto vector u 向量v在向量u上投影的

p is signed 可能是正或者

inner product

向量内算方法之一:

通过已知向量长度,未知向量投影projection到已知向量上,利用勾股定理计算

几何意p是未知向量在已知向量上的 投影长度,是有正负的;||u||是已知向量的长度或范数norm;

Why SVM will always find the large margin: p越小,theta就得越大,而优化目标是让theta最小。最终是的p最大才行;

θ0=0 or ≠0 what the SVM is trying to do when you have this optimization objective, C is very large.

This support vector machine is still finding the large margin separator between the positive and negative examples.

53. Support Vector Machines – Kernels I

通过kernel转换SVM的特征,以构建复杂的非线性分类器

sigma σ

kernel

how to find a better choice of the features?

54. Support Vector Machines - Using a SVM

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

铭记北宸

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值