资源简介
在线SVR,Matlab版本。直接可以使用。
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ONLINE SUPPORT VECTOR REGRESSION %
% Copyright 2006 - Francesco Parrella %
% %
% This program is distributed under the terms of the GNU License %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% OnlineSVR Examples
% Initializations
clear all;
close all;
clear classes;
% Build the OnlineSVR
SVR = OnlineSVR;
% Set Parameters
SVR = set(SVR ‘C‘ 10 ...
‘Epsilon‘ 0.1 ...
‘KernelType‘ ‘RBF‘ ...
‘KernelParam‘ 30 ...
‘AutoErrorTollerance‘ true ...
‘Verbosity‘ 1 ...
‘StabilizedLearning‘ true ...
‘ShowPlots‘ true ...
‘MakeVideo‘ false ...
‘Videotitle‘ ‘‘);
% Build Training set
TrainingSetX = rand(201);
TrainingSetY = sin(TrainingSetX*pi*2);
% Training
SVR = Train(SVR TrainingSetXTrainingSetY);
% Show Info
ShowInfo (SVR);
% Predict some values
TestSetX = [0; 1];
TestSetY = sin(TestSetX*pi*2);
PredictedY = Predict(SVR TestSetX);
Errors = Margin(SVR TestSetXTestSetY);
disp(‘ ‘);
disp(‘Some results:‘);
disp([‘f(0)=‘ num2str(PredictedY(1)) ‘ y(0)=‘ num2str(TestSetY(1)) ‘ margin=‘ num2str(Errors(1))]);
disp([‘f(1)=‘ num2str(PredictedY(2)) ‘ y(1)=‘ num2str(TestSetY(2)) ‘ margin=‘ num2str(Errors(2))]);
disp(‘ ‘);
% Forget first 4 samples
SVR = Forget(SVR 1:4);
% Build plot
BuildPlot(SVR);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-09-03 16:15 OnlineSVR Matlab 2006b Code\
目录 0 2010-09-03 16:18 OnlineSVR Matlab 2006b Code\@OnlineSVR\
文件 1846 2007-04-03 18:17 OnlineSVR Matlab 2006b Code\Example.m
文件 2594 2010-09-03 16:18 OnlineSVR Matlab 2006b Code\@OnlineSVR\Train.m
文件 2171 2007-02-26 02:28 OnlineSVR Matlab 2006b Code\@OnlineSVR\WarmTrain.m
文件 2598 2007-04-03 15:59 OnlineSVR Matlab 2006b Code\@OnlineSVR\VerifyKKTConditions.m
文件 9833 2007-04-03 15:58 OnlineSVR Matlab 2006b Code\@OnlineSVR\Unlearn.m
文件 2593 2007-06-13 19:36 OnlineSVR Matlab 2006b Code\@OnlineSVR\Train.m~
文件 1664 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\TimeToString.m
文件 586 2007-04-03 14:47 OnlineSVR Matlab 2006b Code\@OnlineSVR\SupportSetElementsNumber.m
文件 1864 2007-06-13 11:07 OnlineSVR Matlab 2006b Code\@OnlineSVR\Stabilize.m
文件 601 2007-03-28 16:43 OnlineSVR Matlab 2006b Code\@OnlineSVR\SIGN.m
文件 2546 2007-03-28 16:58 OnlineSVR Matlab 2006b Code\@OnlineSVR\ShowVariations.m
文件 3458 2007-04-03 18:20 OnlineSVR Matlab 2006b Code\@OnlineSVR\ShowUsage.m
文件 1029 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\ShowMessage.m
文件 1291 2007-03-28 17:06 OnlineSVR Matlab 2006b Code\@OnlineSVR\ShowInfo.m
文件 2382 2007-04-03 16:03 OnlineSVR Matlab 2006b Code\@OnlineSVR\ShowDetails.m
文件 2569 2007-04-03 16:13 OnlineSVR Matlab 2006b Code\@OnlineSVR\set.m
文件 1097 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\RemoveSampleFromR.m
文件 592 2007-04-03 14:48 OnlineSVR Matlab 2006b Code\@OnlineSVR\RemainingSetElementsNumber.m
文件 778 2007-03-28 16:54 OnlineSVR Matlab 2006b Code\@OnlineSVR\Q.m
文件 730 2007-03-28 16:52 OnlineSVR Matlab 2006b Code\@OnlineSVR\Predict.m
文件 2960 2007-03-28 15:32 OnlineSVR Matlab 2006b Code\@OnlineSVR\OnlineSVR.m
文件 616 2007-04-03 14:47 OnlineSVR Matlab 2006b Code\@OnlineSVR\NotSupportSetIndexes.m
文件 597 2007-04-03 14:47 OnlineSVR Matlab 2006b Code\@OnlineSVR\NotSupportSetElementsNumber.m
文件 869 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\MatrixToString.m
文件 649 2007-03-28 16:52 OnlineSVR Matlab 2006b Code\@OnlineSVR\Margin.m
文件 7933 2007-04-02 22:39 OnlineSVR Matlab 2006b Code\@OnlineSVR\Learn.m
文件 1881 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\Kernel.m
文件 695 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\IsEquals.m
文件 730 2006-12-01 15:37 OnlineSVR Matlab 2006b Code\@OnlineSVR\IsContained.m
............此处省略19个文件信息
评论
共有 条评论