当前位置:网站首页>Related knowledge of libsvm support vector machine
Related knowledge of libsvm support vector machine
2022-06-26 14:12:00 【Orange tea must be ^ -^】
https://www.esat.kuleuven.be/sista/lssvmlab/
You can use the official website above to download LS-SVM, And put the downloaded file in matlab Medium toolbox Under the folder , And add the path , Available for use SVM The toolbox .matlab The built-in tool box can only be used for classification , Cannot be used to predict .
Support vector machine (SVM) It's a two category model , among libsvm Now it can also be used to predict , I mainly use it for forecasting purposes .
among LS-SVM Least squares support vector machine , yes SVM An improvement of , Can be used to predict , and libsvm It is developed by professors of National Taiwan University and can be used for classification , Prediction, etc , In use libsvm I want to download it VS To run , because libsvm At first it was in C++ Developed under the program , So you need an editor .
gam choice RBF Function as kernel after , This function has a parameter , Related to Gaussian function ( Normal distribution ),sig2 Also for the RBF( Radial basis ) Function is a kernel function with its own parameters , The size can be set by yourself
RBF The relevant formula of the function is as follows :

If gamma Set too big ,sgm(σ) It will be very small ,sgm(σ) Very small Gaussian distributions grow tall and thin , It will only act near the support vector samples , For unknown samples, the classification effect is very poor , If it's too small , Will cause too much smoothing effect , Can't get a particularly high accuracy rate on the training set , It will also affect the accuracy of the test set .
In conclusion, it is :
gamma The bigger it is , The higher the dimension of the mapping , The better the result of the training , The less support vector , But the more likely it is to cause over fitting , That is, the generalization ability is low .
gamma The smaller the value. , The more support vectors . The number of support vectors affects the speed of training and prediction , And it will also affect the accuracy .
( Over fitting , Under fitting phenomenon )
C It's the punishment factor , Determines how much you value the loss of outliers , Some data are interpreted as the tolerance of errors , In fact, the error mentioned in this sentence is not an error . The specific effect is :
c The bigger it is , The stricter the classification , There can be no mistakes , Easy to overfit ;
c The smaller it is , It means greater error tolerance , Easy under fitting .
The steps for forecasting are the same as BPNN be similar , All are
1、 Import data matlab in
2、 Divide the input data into training data , Test data , And normalize the data
3、 Set parameters , If you use RBF, Set up gam,sig2,C Equal parameter
4、 Function declaration , And the determination of kernel function , Training , Fixed formula for training :
use trainlssvm() Function to train the training data ,
[alpha,b] = trainlssvm({train_Input',train_Output',type,gam,sig,'RBF_kernel'});
SVMtrain_Output = simlssvm({train_Input',train_Output',type,gam,sig,'RBF_kernel','preprocess'},{alpha,b},train_Input');
边栏推荐
- Design of PHP asymmetric encryption algorithm (RSA) encryption mechanism
- Wechat applet Registration Guide
- 【HCSD应用开发实训营】一行代码秒上云评测文章—实验过程心得
- Codeforces Global Round 21A~D
- Global variable vs local variable
- 虫子 内存管理 上
- 【Proteus仿真】Arduino UNO按键启停 + PWM 调速控制直流电机转速
- Stream常用操作以及原理探索
- 虫子 内存管理 下 内存注意点
- [hcsd application development training camp] one line of code second cloud evaluation article - experience from the experiment process
猜你喜欢

Basic type of typescript

嵌入式virlog代码运行流程

Hard (magnetic) disk (I)

Create your own cross domain proxy server

Included angle of 3D vector

What is the use of index aliases in ES

FreeFileSync 文件夹比较与同步软件

Self created notes (unique in the whole network, continuously updated)

9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》

Installation and uninstallation of MySQL software for windows
随机推荐
Gee - Global Human Settlements grid data 1975-1990-2000-2014
Use performance to see what the browser is doing
永远不要使用Redis过期监听实现定时任务!
[proteus simulation] Arduino uno key start / stop + PWM speed control DC motor speed
使用 Performance 看看浏览器在做什么
2021-10-18 character array
First k large XOR value problem
33. Use rgbd camera for target detection and depth information output
Luogu p4513 xiaobaiguang Park
Comparison of disk partition modes (MBR and GPT)
Hard (magnetic) disk (I)
免费的机器学习数据集网站(6300+数据集)
团队管理的最关键因素
古瑞瓦特沖刺港交所上市:創下“多個第一”,獲IDG資本9億元投資
近期比较重要消息
Luogu p4145 seven minutes of God created questions 2 / Huashen travels around the world
8. Ribbon load balancing service call
Insect operator overloaded a fun
Wechat applet Registration Guide
windows版MySQL软件的安装与卸载