当前位置:网站首页>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.
边栏推荐
- CentOS7下mysql5.7.37的卸载【完美方案】
- Draw Your Cards
- Mathematical Ideas in AI
- The whole process scheduling, MySQL and Sqoop
- 多线程下类对象的服务承诺探讨
- 跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
- 知识蒸馏7:知识蒸馏代码详解
- Linux下redis7的安装,启动与停止
- YOLOV5 study notes (2) - environment installation + operation + training
- Static routing + PAT + static NAT (explanation + experiment)
猜你喜欢

SQL注入 Less46(order by后的注入+rand()布尔盲注)

YOLOV5 study notes (2) - environment installation + operation + training

StringJoiner in detail

10 权限介绍

6、显示评论和回复

【Android】Room —— SQLite的替代品

Real-time image acquisition based on FPGA

关于 mysql8.0数据库中主键位id,使用replace插入id为0时,实际id插入后自增导致数据重复插入 的解决方法

String为什么不可变?

8、统一处理异常(控制器通知@ControllerAdvice全局配置类、@ExceptionHandler统一处理异常)
随机推荐
How to design the changing system requirements
The Sad History of Image Processing Technology
16、热帖排行
完整复制虚拟机原理(云计算)
User interaction + formatted output
Discussion on Service Commitment of Class Objects under Multithreading
字体压缩神器font-spider的使用
4. Sensitive word filtering (prefix tree)
Mathematics to solve the problem - circular linked list
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
AtCoder Beginner Contest 261 部分题解
2022牛客多校联赛第四场 题解
cudaMemcpy study notes
How to build a private yum source
Problems that need to be solved by the tcp framework
BAT can't sell "Medical Cloud": Hospitals flee, mountains stand, and there are rules
Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue
Classic linked list OJ strong training problem - fast and slow double pointer efficient solution
SQL注入 Less46(order by后的注入+rand()布尔盲注)
f.grid_sample