当前位置:网站首页>Chapter 9 SVM Practice
Chapter 9 SVM Practice
2022-07-31 02:46:00 【Sang Zhiwei 0208】
1 Use of SVM packages
Import svm package from sklearn
2 SVM tuning

Increased c——decreased generalization ability——increased accuracy——narrowed the transition band

kernel - kernel function, default is rbf, can be linear
gamma: kernel function parameters for rbf, poly and sigmoid.The default is auto, which will select 1/n_features
ovo:one vs one ——>Six classifiers appear in four categories
ovr (default): one vs rest --> Four classifiers appear in four categories
3 Handling of unbalanced data
Change the weight size
Then judge the most suitable classification through the graphicsdevice

4 Classifier metrics
AUC (Confusion Matrix):



Metrics:
Accuracy
Precision
Recall 
The harmonic mean of precision and recall
, β is small, it is important to precision, otherwise it is important to recall.
5 SVM for handwritten digit classification

Training Data Access

Test data access

Obtain the accuracy of training data and test data, so as to judge the quality of the classifier and the over-fitting situation.
6 Support Vector Regression: SVR

kernel: kernel function, the default is rbf, it can also be linear, poly, sigmoid, etc.
degree: int, default 3.Degree of polynomial kernel function
gamma: kernel function parameters for rbf, poly and sigmoid.The default is auto, which will select 1/n_features.
C: float, default 1.0, penalty parameter.
边栏推荐
- The final exam first year course
- 关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法
- Teach you how to configure Jenkins automated email notifications
- SQL注入 Less47(报错注入) 和Less49(时间盲注)
- JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
- CentOS7下mysql5.7.37的卸载【完美方案】
- The simulation application of common mode inductance is here, full of dry goods for everyone
- 知识蒸馏7:知识蒸馏代码详解
- 基于opencv实现人脸检测
- 拒绝加班,程序员开发的效率工具集
猜你喜欢

Introduction to flask series 】 【 flask - using SQLAlchemy

JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply

Teach you how to configure Jenkins automated email notifications

Pythagorean tuple od js

STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode

公司官网建站笔记(六):域名进行公安备案并将备案号显示在网页底部

字体压缩神器font-spider的使用

共模电感的仿真应用来了,满满的干货送给大家

STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
![The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]](/img/8a/28427aa773e46740eda9e95f6669f2.png)
The comprehensive result of the case statement, do you know it?[Verilog Advanced Tutorial]
随机推荐
局域网电脑硬件信息收集工具
Problems that need to be solved by the tcp framework
7. List of private messages
修改未正确放入沙盒造成苹果兼容性问题
Discourse Custom Header Links
[1153] The boundary range of between in mysql
User interaction + formatted output
Detailed explanation of STP election (step + case)
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
【C语言基础】解决C语言error: expected ‘;‘, ‘,‘ or ‘)‘ before ‘&‘ token
【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
STM32CUBEMX develops GD32F303 (11) ---- ADC scans multiple channels in DMA mode
Validate XML documents
How to build a private yum source
Discussion on Service Commitment of Class Objects under Multithreading
How to do a startup CTO?
【Bank Series Phase 1】People's Bank of China
tcp框架需要解决的问题
Mathematics to solve the problem - circular linked list
Calculate S=a+aa+…+aa…a