导航:首页 > 编程语言 > libsvmmatlab代码

libsvmmatlab代码

发布时间:2024-11-29 09:18:27

㈠ Matlab的libsvm 中训练参数怎么输出

c语言版本的也记录在 model 里面.其中model 是一个结构体,其定义如下.

struct svm_model
{
struct svm_parameter param; // parameter
int nr_class; // number of classes, = 2 in regression/one class svm
int l; // total #SV
struct svm_node **SV; // SVs (SV[l])
double **sv_coef; // coefficients for SVs in decision functions (sv_coef[k-1][l])
double *rho; // constants in decision functions (rho[k*(k-1)/2])
double *probA; // pariwise probability information
double *probB;

// for classification only

int *label; // label of each class (label[k])
int *nSV; // number of SVs for each class (nSV[k])
// nSV[0] + nSV[1] + ... + nSV[k-1] = l
// XXX
int free_sv; // 1 if svm_model is created by svm_load_model
// 0 if svm_model is created by svm_train
};

里面的sv_coef就是指向 拉格朗日参数(可能乘了1或者-1)的指针的指针
=============
其实用Matlab版本的更方便

阅读全文

与libsvmmatlab代码相关的资料

热点内容
内圆弧铣刀怎么编程 浏览:410
记事本文件转word格式对齐 浏览:300
excel删除恢复文件 浏览:290
三星s4怎么切换3g网络 浏览:994
什么是网站维护 浏览:314
文件夹录像在哪里 浏览:621
可以发语音的是什么app 浏览:804
恢复手机桌面文件管理 浏览:627
用什么软件可以打开psd文件 浏览:459
公安有哪些警务app 浏览:150
生意转租用什么app 浏览:683
广义的网络信息保密性是指 浏览:657
qq背景唯美简约图片 浏览:292
sky网络电话怎么收费 浏览:599
编程公司哪个比较好 浏览:182
修改归档日志文件的路径 浏览:8
配置文件替换 浏览:117
mac右键没有删除文件 浏览:624
苹果手机游戏文稿和数据在哪清理 浏览:326
qq旋风文件名 浏览:270

友情链接