当前位置: 首页 > news >正文

【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

http://www.lryc.cn/news/301715.html

相关文章:

  • 力扣72. 编辑距离(动态规划)
  • linux tree命令找不到:如何使用Linux Tree命令查看文件系统结构
  • OJ_最大逆序差
  • MyBatis-Plus 实体类里写正则让字段phone限制为手机格式
  • K8S之运用污点、容忍度设置Pod的调度约束
  • Sora爆火,普通人的10个赚钱机会
  • 【C++】C++入门—初识构造函数 , 析构函数,拷贝构造函数,赋值运算符重载
  • 沁恒CH32V30X学习笔记04--外部中断
  • 基础IO[三]
  • Leetcode 392 判断子序列
  • 基于微信小程序的校园跑腿系统的研究与实现,附源码
  • VTK Python PyQt 监听键盘 控制 Actor 移动 变色
  • 力扣 第 124 场双周赛 解题报告 | 珂学家 | 非常规区间合并
  • 2024年华为OD机试真题-生成哈夫曼树-Java-OD统一考试(C卷)
  • 【实战】二、Jest难点进阶(二) —— 前端要学的测试课 从Jest入门到TDD BDD双实战(六)
  • (一)【Jmeter】JDK及Jmeter的安装部署及简单配置
  • HAL/LL/STD STM32 U8g2库 +I2C SSD1306/sh1106 WouoUI磁贴案例
  • 手机如何改自己的ip地址
  • ajax函数库axios基本使用
  • 【nginx实践连载-4】彻底卸载Nginx(Ubuntu)
  • 究极小白如何自己搭建一个自动发卡网站-独角数卡
  • Java_方法(重载方法签名等详解)
  • VQ35 评论替换和去除(char_length()和replace函数的使用)
  • 【MySQL】学习多表查询和笛卡尔积
  • RabbitMQ实现延迟消息的方式-死信队列、延迟队列和惰性队列
  • 【运维测试】测试理论+工具总结笔记第1篇:测试理论的主要内容(已分享,附代码)
  • 【C语言】实现队列
  • 【友塔笔试面试复盘】八边形取反问题
  • GB 18585-2023 壁纸中有害物质限量
  • 全面的ASP.NET Core Blazor简介和快速入门