資源簡介
libsvm - 支持多類別分類的svm工具箱(matlab). 它擴展了matlab自帶的svm分類器的功能(只能完成2分類),可配合DeepLearnToolbox使用

代碼片段和文件信息
%?PROCESS?FUNCTION?BOILERPLATE?CODE
%?Copyright?2005-2007?The?MathWorks?Inc.
%?TODO?-?Add?size?checking?for?X?and?Y
if?(nargin?1)?error(‘NNET:Arguments‘‘Not?enough?arguments.‘);?end
if?isstr(in1)
switch?lower(in1)
case?‘name‘
if?nargin?>?1?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘name‘‘?action‘)?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘name‘‘?action‘)?end
out1?=?name;
case?‘pdefaults‘
if?nargin?>?2?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘pdefaults‘‘?action‘)?end
if?nargin?2?in2?=?{};?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘pdefaults‘‘?action‘)?end
out1?=?param_defaults(in2);
case?‘pnames‘
if?nargin?>?1?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘pnames‘‘?action‘)?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘pnames‘‘?action‘)?end
out1?=?param_names;
case?‘pcheck‘
if?(nargin?2)?error(‘NNET:Arguments‘‘Not?enough?input?arguments?for?‘‘pcheck‘‘?action‘)?end
if?nargin?>?2?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘pcheck‘‘?action‘)?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘pcheck‘‘?action‘)?end
if?~isa(in2‘struct‘)?error(‘NNET:Arguments‘‘Parameters?are?not?a?struct.‘);?end
names1?=?fieldnames(param_defaults({}));
names2?=?fieldnames(in2);
if?length(names1)?~=?length(names2)?error(‘NNET:Arguments‘‘Incorrect?number?of?parameters.‘);?end
names1?=?sort(names1);
names2?=?sort(names2);
for?i=1:length(names1)
if?~strcmp(names1{i}names2{i})?error(‘NNET:Arguments‘[‘Parameter?field?name?is?not?correct:‘?names2{i}]);?end
end
out1?=?param_check(in2);
if?(nargout?==?0)?&&?~isempty(out1)
error(‘NNET:Arguments‘out1);
end
case?‘apply‘
if?(nargin?3)?error(‘NNET:Arguments‘‘Not?enough?input?arguments?for?‘‘apply‘‘?action.‘);?end
if?(nargin?>?3)?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘apply‘‘?action‘)?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘apply‘‘?action‘)?end
c?=?iscell(in2);
if?c
if?(size(in21)?~=?1)
error(‘NNET:Arguments‘‘Cell?array?X?must?have?only?one?row‘)
end
cols?=?size(in22);
colSizes?=?zeros(1cols);
for?i=1:cols
colSizes(i)?=?size(in2{1i}2);
end
in2?=?cell2mat(in2);
elseif?~isa(in2‘double‘)
error(‘NNET:Arguments‘‘X?must?be?a?matrix?or?a?row?cell?array‘)
end
out1?=?apply_process(in2in3);
if?c
out1?=?mat2cell(out1size(out11)colSizes);
end
case?‘reverse‘
if?(nargin?3)?error(‘NNET:Arguments‘‘Not?enough?input?arguments?for?‘‘reverse‘‘?action.‘);?end
if?(nargin?>?3)?error(‘NNET:Arguments‘‘Too?many?input?arguments?for?‘‘reverse‘‘?action‘)?end
if?(nargout?>?1)?error(‘NNET:Arguments‘‘Too?many?output?arguments?for?‘‘reverse‘‘?action‘)?end
c?=?iscell(in2);
if?c
if?(size(in21)?~=?1)
error(‘NNET:Arguments‘‘Cell?array?X?must?have?only?one?row‘)
end
cols?=?size(in22);
colSizes?=?zeros(1cols
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-08-20?08:10??libsvm-mat-2.89-3\
?????目錄???????????0??2016-08-19?22:53??libsvm-mat-2.89-3\15topic\
?????文件??????212702??2016-08-08?20:02??libsvm-mat-2.89-3\15topic\test.xlsx
?????文件???????20382??2016-08-19?23:35??libsvm-mat-2.89-3\15topic\test_labels.xlsx
?????文件??????835700??2016-08-08?20:08??libsvm-mat-2.89-3\15topic\train.xlsx
?????文件???????56236??2016-08-19?23:34??libsvm-mat-2.89-3\15topic\train_labels.xlsx
?????文件????????1497??2016-08-19?21:47??libsvm-mat-2.89-3\COPYRIGHT
?????文件??????260908??2016-08-19?21:47??libsvm-mat-2.89-3\LibSVM程序代碼注釋.pdf
?????文件????????1462??2016-08-19?21:47??libsvm-mat-2.89-3\Makefile
?????文件????????9181??2016-08-19?21:47??libsvm-mat-2.89-3\README
?????文件??????160123??2016-08-19?23:20??libsvm-mat-2.89-3\TestData.mat
?????文件??????638849??2016-08-19?23:20??libsvm-mat-2.89-3\TrainData.mat
?????文件??????222041??2016-08-19?21:47??libsvm-mat-2.89-3\TutorialForFarutoUltimate3.0.pdf
?????文件????????5131??2013-08-19?09:48??libsvm-mat-2.89-3\boiler_process.m
?????文件???????28904??2016-08-19?21:47??libsvm-mat-2.89-3\heart_scale.mat
?????目錄???????????0??2016-08-19?21:52??libsvm-mat-2.89-3\implement[by?faruto]\
?????文件????????4189??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVC.m
?????文件?????????993??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVC_test.m
?????文件????????2695??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVMcgForClass.m
?????文件????????2608??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVMcgForRegress.m
?????文件????????5869??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVR.m
?????文件????????1184??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\SVR_test.m
?????文件??????222041??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\TutorialForFarutoUltimate3.0.pdf
?????文件????????3598??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\TutorialTest.m
?????文件????????3960??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\VF.m
?????文件????????2835??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\a_template_flow_usingSVM_class.m
?????文件????????2159??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\a_template_flow_usingSVM_regress.m
?????文件?????????871??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\fasticaForSVM.m
?????文件????????3778??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\gaSVMcgForClass.m
?????文件????????3510??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\gaSVMcgForRegress.m
?????文件????????3788??2016-08-19?21:47??libsvm-mat-2.89-3\implement[by?faruto]\gaSVMcgpForRegress.m
............此處省略68個文件信息
評論
共有 條評論