当前位置:网站首页>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.
边栏推荐
- User interaction + formatted output
- The whole process scheduling, MySQL and Sqoop
- AtCoder Beginner Contest 261 Partial Solution
- mmdetection trains a model related command
- 共模电感的仿真应用来了,满满的干货送给大家
- 你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?
- 2022牛客多校联赛第四场 题解
- 15. Website Statistics
- 【shell基础】判断目录是否为空
- Maximum area of solar panel od js
猜你喜欢
10. Redis implements likes (Set) and obtains the total number of likes
The principle of complete replication of virtual machines (cloud computing)
MPPT太阳能充放电控制器数据采集-通过网关采集电池电压容量电量SOC,wifi传输
STM32CUBEMX开发GD32F303(11)----ADC在DMA模式下扫描多个通道
局域网电脑硬件信息收集工具
Chapter 9 SVM实践
CentOS7下mysql5.7.37的安装【完美方案】
What level of software testing does it take to get a 9K job?
全流程调度——MySQL与Sqoop
自动化办公案例:如何自动生成期数据?
随机推荐
什么是分布式锁?实现分布式锁的三种方式
StringJoiner详解
Pythagorean tuple od js
golang GUI for nuxui — HelloWorld
The application of AI in the whole process of medical imaging equipment
【CV项目调试】CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT问题
AI software development process in medical imaging field
tcp框架需要解决的问题
YOLOV5学习笔记(三)——网络模块详解
Chapter 9 SVM实践
CMOS和TTL的区别?
JetPack component Databinding
Refuse to work overtime, a productivity tool set developed by programmers
Drools basic introduction, introductory case, basic syntax
10. Redis implements likes (Set) and obtains the total number of likes
多线程下类对象的服务承诺探讨
Intel's software and hardware optimization empowers Neusoft to accelerate the arrival of the era of smart medical care
execsnoop 工具
8. Unified exception handling (controller notifies @ControllerAdvice global configuration class, @ExceptionHandler handles exceptions uniformly)
你们程序员为什么不靠自己的项目谋生?而必须为其他人打工?