【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

相关推荐

  1. ES<span style='color:red;'>6</span>-<span style='color:red;'>let</span>

    ES6-let

    2024-02-19 09:58:02      37 阅读
  2. 【ES6let与const

    2024-02-19 09:58:02       45 阅读
  3. Day 37 贪心算法 6

    2024-02-19 09:58:02       57 阅读
  4. 201903CSPT5 317号子任务

    2024-02-19 09:58:02       61 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-19 09:58:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-19 09:58:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-19 09:58:02       82 阅读
  4. Python语言-面向对象

    2024-02-19 09:58:02       91 阅读

热门阅读

  1. Vue2:Vuex中使用mapMutations和mapActions

    2024-02-19 09:58:02       53 阅读
  2. 如何优化静态服务器以提高网站速度?

    2024-02-19 09:58:02       51 阅读
  3. Django数据库重新初始化

    2024-02-19 09:58:02       48 阅读
  4. 2024前端面试准备之TypeScript篇(一)

    2024-02-19 09:58:02       59 阅读
  5. ansible

    ansible

    2024-02-19 09:58:02      47 阅读
  6. 低代码开发:助力企业迈向智能化未来

    2024-02-19 09:58:02       59 阅读
  7. C++的虚函数和纯虚函数的功能是什么

    2024-02-19 09:58:02       53 阅读