资源简介
用于分类的SVM的代码,很好用的哦!各种分类情形都有哦!
代码片段和文件信息
function c = correctness(e zeta)
% CORRECTNESS
%
% This function computes the correctness (i.e. the proportion of patterns
% classified correctly) given a vector e where each element represents
% a pattern; a value of 1 indicates an error a value of 0 represents a
% correct classification. An optional parameter zeta specifies a pattern
% replication factor for each pattern for example if zeta(42) = 7 this
% implies that the value of e(42) represents the error for 7 similar
% patterns.
%
% c = correctness(e zeta)
%
% File : correctness.m
%
% Date : Satuday 16th September 2000
%
% Author : Dr Gavin C. Cawley
%
% Description :
%
% History : 09/07/2000 - v1.00
% 16/09/2000 - v1.01 minor improvements to comments and help
% message
%
% Copyright : (c) Dr Gavin C. Cawley September 2000.
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not write to the Free Software
% Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
%
if nargin == 1
zeta = ones(size(e));
end
c = 1.0 - sum(e.*zeta)/sum(zeta);
% bye bye...
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\MATLAB Support Vector Machine Toolbox.files\
文件 7639 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\MATLAB Support Vector Machine Toolbox.files\uea_logo.gif
文件 6819 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\MATLAB Support Vector Machine Toolbox.htm
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@dagsvm\
文件 2348 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@dagsvm\dagsvm.m
文件 2558 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@dagsvm\fwd.m
文件 2175 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@dagsvm\train.m
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@linear\
文件 1591 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@linear\char.m
文件 1563 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@linear\display.m
文件 1755 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@linear\evaluate.m
文件 1980 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@linear\linear.m
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@maxwin\
文件 1809 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@maxwin\fwd.m
文件 2371 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@maxwin\maxwin.m
文件 2098 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@maxwin\train.m
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@pairwise\
文件 2040 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@pairwise\fwd.m
文件 2375 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@pairwise\pairwise.m
文件 2459 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@pairwise\train.m
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@polynomial\
文件 1699 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@polynomial\char.m
文件 1595 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@polynomial\display.m
文件 1898 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@polynomial\evaluate.m
文件 2281 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@polynomial\polynomial.m
目录 0 2008-12-23 10:28 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@rbf\
文件 1715 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@rbf\char.m
文件 1601 2002-04-15 00:00 SVMmatlab\SVMmatlab\Gavin\svm_v0.54\@rbf\display.m
............此处省略203个文件信息
- 上一篇:基于matlab的机器人最优路径规划仿真
- 下一篇:水下被动定位论文
评论
共有 条评论