当前位置:网站首页>Chapter 9 SVM实践
Chapter 9 SVM实践
2022-07-31 02:42:00 【桑之未落0208】
1 SVM包的使用
从sklearn导入svm包
2 SVM的调参

c增大——泛化能力降低——精度提高——过渡带变窄

kernel——核函数,默认是rbf,可以是linear
gamma: rbf,poly 和sigmoid的核函数参数。默认是auto,则会选择1/n_features
ovo:one vs one ——>四个类别出现六个分类器
ovr(默认):one vs rest——>四个类别出现四个分类器
3 不平衡数据的处理
改变权重大小
然后通过图形来判断最合适的分类器

4 分类器指标
AUC(混淆矩阵):



指标:
准确率
精确率
召回率
精确率和召回率的调和平均值
,β小则重视precision,反之重视recall。
5 SVM用于手写体数字分类

训练数据存取

测试数据存取

求得训练数据、测试数据的准确率,从而判断分类器的好坏以及过拟合情况。
6 支持向量回归:SVR

kernel:核函数,默认是rbf,还可以是linear、poly、sigmoid等等。
degree:int,默认3。多项式核函数的次数
gamma: rbf,poly 和sigmoid的核函数参数。默认是auto,则会选择1/n_features。
C:float,默认1.0,惩罚参数。
边栏推荐
- STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
- 15、网站统计数据
- Real-time image acquisition based on FPGA
- JetPack component Databinding
- There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
- 知识蒸馏7:知识蒸馏代码详解
- Force buckled brush the stairs (7/30)
- php 网站的多语言设置(IP地址区分国内国外)
- First acquaintance with C language -- array
- cudaMemcpy study notes
猜你喜欢

字体压缩神器font-spider的使用
![LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING](/img/56/fcc8ee6f592abf0a374fc950a3362f.png)
LeetCode 1161 The largest element in the layer and the LeetCode road of [BFS binary tree] HERODING

Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment

SQL注入 Less54(限制次数的SQL注入+union注入)

7. List of private messages

8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)

FPGA-based vending machine

11、Redis实现关注、取消关注以及关注和粉丝列表

Intranet Infiltration - Privilege Escalation

Force buckled brush the stairs (7/30)
随机推荐
8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
String为什么不可变?
19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
Validate XML documents
AI在医疗影像设备全流程应用
什么是分布式锁?实现分布式锁的三种方式
Real-time image acquisition based on FPGA
print task sorting js od huawei
开题报告之论文框架
AI中的数学思想
【银行系列第一期】中国人民银行
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
图解lower_bound&upper_bound
Manchester City confuses fans with smart scarf that detects emotions
Discourse 自定义头部链接(Custom Header Links)
Layer 2 broadcast storm (cause + judgment + solution)
execsnoop 工具
1. Non-type template parameters 2. Specialization of templates 3. Explanation of inheritance
Calculate S=a+aa+…+aa…a
execsnoop tool