A. matlab工具箱中的prelssvm是什么意思
我这里是LS-SVMlab1.5工具箱下的prelssvm.m文件
懒得去看了,直接把文件头帮助给你复制过来
有需要去看这个工具箱的说明,国内有人用应该写过相关介绍的。
function [model,Yt] = prelssvm(model,Xt,Yt)
% Preprocessing of the LS-SVM%
% These functions should only be called by trainlssvm or by
% simlssvm. At first the preprocessing assigns a label to each in-
% and output component (c for continuous, a for categorical or b
% for binary variables). According to this label each dimension is rescaled:
%
% * continuous: zero mean and unit variance
% * categorical: no preprocessing
% * binary: labels -1 and +1
%
% Full syntax (only using the object oriented interface):
%
% >> model = prelssvm(model)
% >> Xp = prelssvm(model, Xt)
% >> [empty, Yp] = prelssvm(model, [], Yt)
% >> [Xp, Yp] = prelssvm(model, Xt, Yt)
%
% Outputs
% model : Preprocessed object oriented representation of the LS-SVM model
% Xp : Nt x d matrix with the preprocessed inputs of the test data
% Yp : Nt x d matrix with the preprocessed outputs of the test data
% Inputs
% model : Object oriented representation of the LS-SVM model
% Xt : Nt x d matrix with the inputs of the test data to preprocess
% Yt : Nt x d matrix with the outputs of the test data to preprocess
%
%
% See also:
% postlssvm, trainlssvm
% Copyright (c) 2002, KULeuven-ESAT-SCD, License & help @ http://www.esat.kuleuven.ac.be/sista/lssvmlab
B. 怎么安装LSSVM 1.6
打开你的压缩包,解压到你的电脑磁盘
C. 关于matlab的SVM工具箱的几个函数
help用法:
在命令输入窗口输入: help+空格+函数名
把上边的函数都help一下就行了
trainlssvm训练用
simlssvm测试用
D. 有人知道怎么把SVDD工具箱装到libsvm吗
1 先下载 libsvm-svdd-3.18.zip和 libsvm-3.18.zip,并解压得到文件夹 libsvm-svdd-3.18和libsvm-3.18;
2 将文件夹 libsvm-svdd-3.18根目录下的svm.cpp、svm.h和svm-train.c复制到 libsvm-3.18根目录下并覆盖回原来的这3个文件;将答文件夹 libsvm-svdd-3.18中 matlab里的文件 svmtrain.c 复制到 libsvm-3.18中的matlab文件夹中覆盖原来的c文件;
3 安装 libsvm-3.18,这个教程网上一大堆,主要是两步:mex -setup和 make;
4 测试安装是否成功。
E. MATLAB中LS-SVM工具箱的问题
LS-SVM是什么,题主随便搜索一下就应该知道了啊。。。
LS-SVM是的缩写,中文翻译成“最小二专乘支持向量属机”,用于非线性分类、回归、时间序列预测和无监督学习等领域。
至于那两个函数,trainlssvm用来训练得到模型,simlssvm则用trainlssvm训练得到的model为测试集分类或者进行函数拟合(和神经网络中的概念类似)。
工具箱里面有相应的演示程序(名字都以demo开头),您可以结合具体的例子去学习。
附件是一个关于该工具箱的说明,供参考。
F. 怎么在matlab平台上安装ls svmlab这个工具箱
第一步:首先将解压得到的文件夹拷贝到自己MATLAB的安装目录下,如
C:\Program Files\MATLAB\R2012b\toolbox\LSSVMlabv1_8_R2009b_R2011a
第二步:打开MATLAB,如果是Matlab7.0的话单击File,如何是2012的话在home面板上,靠近Layout那里有Set Path,然后选择Set Path这一选项,这时会出现Set Path的窗口,点击 Add Folder。。。将刚才拷贝到目录下的那个文件夹添加进来,点击Save,然后close。
第三步:检验工具箱是否添加成功:在MATLAB 的命令窗口中输入:
which tunelssvm.m
如果出现下面的情况:
>> which tunelssvm.m
C:\Program Files\MATLAB\R2012b\toolbox\LSSVMlabv1_8_R2009b_R2011a\tunelssvm.m
则表示安装成功。
G. matlab中用最小二乘支持向量机怎么建模
LSSVM工具箱里自带了一个用户指南说明 不过是英文版的 看那个就差不多了 !
H. LSSVM工具箱和matlab自带神经网络工具箱的冲突问题
请问一下你的问题解决了吗?我也遇到这个问题了,纠结啊
I. 关于matlab的SVM工具箱的几个函数
能不用自带函数不,给你个最小二乘支持向量机的自编代码
clear all;
clc;
N=35; %样本个数
NN1=4; %预测样本数
%********************随机选择初始训练样本及确定预测样本*******************************
x=[];
y=[];
index=randperm(N); %随机排序N个序列
index=sort(index);
gama=23.411; %正则化参数
deita=0.0698; %核参数值
%thita=; %核参数值
%*********构造感知机核函数*************************************
%for i=1:N
% x1=x(:,index(i));
% for j=1:N
% x2=x(:,index(j));
% K(i,j)=tanh(deita*(x1'*x2)+thita);
% end
%end
%*********构造径向基核函数**************************************
for i=1:N
x1=x(:,index(i));
for j=1:N
x2=x(:,index(j));
x12=x1-x2;
K(i,j)=exp(-(x12'*x12)/2/(deita*deita));
end
end
%*********构造多项式核函数****************************************
%for i=1:N
% x1=x(:,index(i));
% for j=1:N
% x2=x(:,index(j));
% K(i,j)=(1+x1'*x2)^(deita);
% end
%end
%*********构造核矩阵************************************
for i=1:N-NN1
for j=1:N-NN1
omeiga1(i,j)=K(i,j);
end
end
omeiga2=omeiga1';
omeiga=omeiga2+(1/gama)*eye(N-NN1);
A12=ones(1,N-NN1);
A21=A12';
A=[0 A12;A21 omeiga];
%**************************************
for i=1:N-NN1
B21(i,:)=y(index(i));
end
B=[0;B21];
%********LS-SVM模型的解******************************
C=A\B;
%******
b=C(1); %模型参数
for i=1:N-NN1
aipha(i)=C(i+1); %模型参数,行向量
end
%*******************************************
for i=1:N %预测模型
aifx(i)=b+(aipha)*K(1:N-NN1,i);
end
%*******************************************
aifx
index
J. 各位大侠帮帮忙,我再MATLAB里添加了libsvm3.11工具箱,但是在安装中出现了些问题,下面附张图,帮忙下啊
你说的是不是matlan中文论坛下载的lssvm工具箱安装,很简单的,你告诉我邮箱,我发个你个安装视频,很容易。