导航:首页 > 编程语言 > 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代码相关的资料

热点内容
iphone4ios71降级613 浏览:650
garageband升级 浏览:689
科学linux 浏览:447
哪里的app理财好 浏览:799
linux下线程的创建线程数 浏览:804
怎么改变文件大小 浏览:574
飞雪流水软件注册破解工具 浏览:814
csgo比赛数据哪里看 浏览:961
已越狱iphone4升级ios7 浏览:607
微信分享但不是微商 浏览:877
git子模块如何获取最新数据 浏览:446
java项目ppt模板下载不了 浏览:493
不常用的app怎么取消 浏览:230
js多点滑动选取范围 浏览:756
环境监测app怎么下载 浏览:444
美创科技外数据安全领域怎么样 浏览:143
苹果手机上怎么修改文件表 浏览:865
网上如何年审营业执照网站 浏览:304
电信版iphone好吗 浏览:469
潇湘冬儿在哪个网站 浏览:838

友情链接