当前位置:网站首页>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,惩罚参数。
边栏推荐
- 多线程下类对象的服务承诺探讨
- The Sad History of Image Processing Technology
- Go 项目实战-获取多级分类下的全部商品
- SQL注入 Less54(限制次数的SQL注入+union注入)
- STP选举(步骤+案列)详解
- 什么是分布式锁?实现分布式锁的三种方式
- [1153] The boundary range of between in mysql
- The effective square of the test (one question of the day 7/29)
- How to design the changing system requirements
- Basic learning about Redis related content
猜你喜欢
Observer mode (1)
MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi
YOLOV5学习笔记(三)——网络模块详解
Force buckled brush the stairs (7/30)
11、Redis实现关注、取消关注以及关注和粉丝列表
Layer 2 broadcast storm (cause + judgment + solution)
Hanyuan Hi-Tech 8-channel HDMI integrated multi-service high-definition video optical transceiver 8-channel HDMI video + 8-channel two-way audio + 8-channel 485 data + 8-channel E1 + 32-channel teleph
Basic learning about Redis related content
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
Unity界面总体介绍
随机推荐
英特尔软硬优化,赋能东软加速智慧医疗时代到来
Calculate S=a+aa+…+aa…a
数学解决——环形链表问题
Difference between CMOS and TTL?
什么是分布式锁?实现分布式锁的三种方式
19.支持向量机-优化目标和大间距直观理解
TCP/IP四层模型
php 网站的多语言设置(IP地址区分国内国外)
try-catch中含return
LeetCode 每日一题 2022/7/25-2022/7/31
Unity界面总体介绍
f.grid_sample
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules
multiplayer-hlap 包有问题,无法升级的解决方案
SQL注入 Less47(报错注入) 和Less49(时间盲注)
Problems that need to be solved by the tcp framework
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
Coldfusion file read holes (CVE - 2010-2861)
cudaMemcpy study notes
分布式与集群是什么 ? 区别是什么?