【COMP337 LEC 5-6】

LEC 5 Perceptron :

Binary Classification Algorithm

8
感应器是 单个神经元的模型
突触连接的强度取决于接受外部刺激的反应

X input

W weights

a = x1*w1+x2*w2....... > / < threshold

Bias

MaxIter is a hyperparameter  超参数 which has to be chosen experimentally
If we make many passes over the training data, then the algorithm is likely to overfit.
If we make few passes might lead to underfitting

意思就是这个值,需要不断地手工修改枚举法,保证即不overfit,也不underfitting

LEC 6 Perceptron :

Geometric Interpretation 几何解释

Hyperplane 超平面

Linear separability

1. When a dataset is linearly separable, there can exist more than one hyperplanes that separates the dataset into positive/negative groups.
当线性分离的时候,存在多个hyperplanes
not unique

2. 所以当不是线性分离的时候,就不会存在hyperplane

Take the average over all weight vectors during the training  (Averaged Perceptron algorithm)

Multiclass Classification

Multiclass classifiers
k-NN
Naive Bayes
Binary classifiers
Perceptron
Logistic regression

How to turn a binary classifier to a multiclass classifier?

Given binary classification algorithm A we want to design a meta-algorithm that use A to make k-class predictions.

两种方法:

One-vs.-one approach

There might be ambiguity if some classes got the same number of votes (if the binary classifier A can produce a confidence score, it can be used to break ties)

One-vs.-rest approach

Drawbacks

1. the scale of the confidence scores may differ between the binary classifiers

2. the binary classifiers are trained on unbalanced datasets: usually the set ofnegative objects will be much larger than the set of positive objects

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值