当前位置:网站首页>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.
边栏推荐
- 加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
- 局域网电脑硬件信息收集工具
- 4、敏感词过滤(前缀树)
- 10、Redis实现点赞(Set)和获取总点赞数
- Intranet Infiltration - Privilege Escalation
- First acquaintance with C language -- array
- Classic linked list OJ strong training problem - fast and slow double pointer efficient solution
- 工程(五)——小目标检测tph-yolov5
- 19. Support Vector Machines - Intuitive Understanding of Optimization Objectives and Large Spacing
- TCP/IP four-layer model
猜你喜欢

tcp框架需要解决的问题

跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!

Layer 2 broadcast storm (cause + judgment + solution)

7、私信列表

CentOS7下mysql5.7.37的安装【完美方案】

Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue

MPPT solar charge controller data collection - through the gateway acquisition capacity battery SOC battery voltage, wi-fi

mmdetection trains a model related command

What level of software testing does it take to get a 9K job?
![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]
随机推荐
try-catch中含return
Draw Your Cards
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
Draw Your Cards
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
Mathematics to solve the problem - circular linked list
加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
Multilingual settings of php website (IP address distinguishes domestic and foreign)
2022牛客多校联赛第四场 题解
General introduction to the Unity interface
Refuse to work overtime, a productivity tool set developed by programmers
Modbus on AT32 MCU
SQL注入 Less47(报错注入) 和Less49(时间盲注)
mycat的主从关系 垂直分库 水平分表 以及mycat分片联表查询的配置详解(mysql5.7系列)
AI software development process in medical imaging field
The application of AI in the whole process of medical imaging equipment
8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
【银行系列第一期】中国人民银行
The Sad History of Image Processing Technology
TCP/IP four-layer model