資源簡介
這是SVM的具體代碼,里面有詳細的說明使用和測試圖片,歡迎下載。SVM(Support Vector Machine)指的是支持向量機,是常見的一種判別方法。在機器學習領域,是一個有監督的學習模型,通常用來進行模式識別、分類以及回歸分析。

代碼片段和文件信息
function?varargout?=?SVC(varargin)
%?SVC?M-file?for?SVC.fig
%??????SVC?by?itself?creates?a?new?SVC?or?raises?the?existing
%??????singleton*.
%
%??????H?=?SVC?returns?the?handle?to?a?new?SVC?or?the?handle?to
%??????the?existing?singleton*.
%
%??????SVC(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?SVC.M?with?the?given?input?arguments.
%
%??????SVC(‘Property‘‘Value‘...)?creates?a?new?SVC?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?SVC_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?SVC_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Edit?the?above?text?to?modify?the?response?to?help?SVC
%?Last?Modified?by?GUIDE?v2.5?27-Jan-2010?21:44:15
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
????‘gui_Singleton‘??gui_Singleton?...
????‘gui_OpeningFcn‘?@SVC_OpeningFcn?...
????‘gui_OutputFcn‘??@SVC_OutputFcn?...
????‘gui_LayoutFcn‘??[]??...
????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?SVC?is?made?visible.
function?SVC_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?SVC?(see?VARARGIN)
%?Choose?default?command?line?output?for?SVC
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?SVC?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure1);
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?SVC_OutputFcn(hobject?eventdata?handles)
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
%?javaframe?=?get(gcf‘Javaframe‘);
%?set(javaframe‘Maximized‘1);
%?---?Executes?on?button?press?in?load.
function?load_Callback(hobject?eventdata?handles)
%?hobject????handle?to?load?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
[filenamepathnamefilterindex]?=?uigetfile({‘*.mat‘;‘*.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-12-10?16:03??SVM_GUI_3.1[mcode]{by?faruto}\
?????文件???????20001??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVC.fig
?????文件???????52376??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVC.m
?????文件????????2753??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVM_GUI.fig
?????文件????????3675??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVM_GUI.m
?????文件???????23716??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVR.fig
?????文件???????64762??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\SVR.m
?????文件????????1142??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\readme.txt
?????文件???????13206??2014-12-04?10:32??SVM_GUI_3.1[mcode]{by?faruto}\test.mat
?????目錄???????????0??2014-12-10?16:03??SVM_GUI_3.1[mcode]{by?faruto}\testdata\
?????文件??????235397??2014-12-10?16:03??SVM_GUI_3.1[mcode]{by?faruto}\testdata\data.mat
?????文件?????????911??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\testdata\fisheriris_test.mat
?????文件????????3801??2014-12-04?10:44??SVM_GUI_3.1[mcode]{by?faruto}\testdata\mydata.mat
?????文件?????????568??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\testdata\regress_test.mat
?????文件????????6089??2014-12-04?10:30??SVM_GUI_3.1[mcode]{by?faruto}\testdata\wine_test.mat
?????文件?????1288704??2014-12-10?15:23??SVM_GUI_3.1[mcode]{by?faruto}\testdata\zz.xls
?????文件???????38602??2014-12-04?10:47??SVM_GUI_3.1[mcode]{by?faruto}\測試集的實際分類和預測分類.jpg
?????文件???????52092??2014-12-04?10:46??SVM_GUI_3.1[mcode]{by?faruto}\適應度曲線.jpg
- 上一篇:用戶故事地圖 pdf
- 下一篇:combobox實現下拉框多選
評論
共有 條評論