当前位置:网站首页>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.
边栏推荐
猜你喜欢
tcp框架需要解决的问题
Drools basic introduction, introductory case, basic syntax
YOLOV5学习笔记(二)——环境安装+运行+训练
The real CTO is a technical person who understands products
汉源高科8路HDMI综合多业务高清视频光端机8路HDMI视频+8路双向音频+8路485数据+8路E1+32路电话+4路千兆物理隔离网络
19.支持向量机-优化目标和大间距直观理解
公司官网建站笔记(六):域名进行公安备案并将备案号显示在网页底部
加密公司向盗窃的黑客提供报价:保留一点,把剩下的归还
Live Preview | KDD2022 Doctoral Dissertation Award Champion and Runner-up Dialogue
图像处理技术的心酸史
随机推荐
How to build a private yum source
15、网站统计数据
AI software development process in medical imaging field
知识蒸馏7:知识蒸馏代码详解
The whole process scheduling, MySQL and Sqoop
Problems that need to be solved by the tcp framework
Observer mode (1)
6. Display comments and replies
数学解决——环形链表问题
Clustering index, and what is the difference between a clustering index
YOLOV5 study notes (3) - detailed explanation of network module
Static routing + PAT + static NAT (explanation + experiment)
There is a problem with the multiplayer-hlap package and the solution cannot be upgraded
Huawei od dice js
Inter-vlan routing + static routing + NAT (PAT + static NAT) comprehensive experiment
Intel's software and hardware optimization empowers Neusoft to accelerate the arrival of the era of smart medical care
Detailed explanation of STP election (step + case)
Coldfusion file read holes (CVE - 2010-2861)
Draw Your Cards
coldfusion8 background scheduled tasks take shell