当前位置:网站首页>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.
边栏推荐
- Basic learning about Redis related content
- mysql index
- 跨专业考研难度大?“上岸”成功率低?这份实用攻略请收下!
- String为什么不可变?
- Go 项目实战-获取多级分类下的全部商品
- JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
- CorelDRAW2022精简亚太新增功能详细介绍
- mmdetection trains a model related command
- Project (5) - Small target detection tph-yolov5
- 【银行系列第一期】中国人民银行
猜你喜欢
The real CTO is a technical person who understands products
什么是分布式锁?实现分布式锁的三种方式
How to design the changing system requirements
Difference between CMOS and TTL?
Teach you how to configure Jenkins automated email notifications
C#远程调试
Chapter 9 SVM实践
YOLOV5 study notes (2) - environment installation + operation + training
编译Hudi
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
随机推荐
Moxa NPort 设备缺陷可能使关键基础设施遭受破坏性攻击
TCP/IP四层模型
How to build a private yum source
print task sorting js od huawei
软件积累 -- 截图软件ScreenToGif
Discourse 自定义头部链接(Custom Header Links)
Coldfusion file read holes (CVE - 2010-2861)
Draw Your Cards
Static routing + PAT + static NAT (explanation + experiment)
自动化办公案例:如何自动生成期数据?
How to design the changing system requirements
Real-time image acquisition based on FPGA
C#远程调试
Uninstallation of mysql5.7.37 under CentOS7 [perfect solution]
Project development software directory structure specification
Drools Rule Properties, Advanced Syntax
JS 函数 this上下文 运行时点语法 圆括号 数组 IIFE 定时器 延时器 self.备份上下文 call apply
Maximum area of solar panel od js
Brute Force/Adjacency Matrix Breadth First Directed Weighted Graph Undirected Weighted Graph
Multilingual settings of php website (IP address distinguishes domestic and foreign)