www.gusucode.com > stats 源码程序 matlab案例代码 > stats/CreateDefaultSupportVectorMachineTemplateExample.m
%% Create a Default Support Vector Machine Template %% % Use |templateSVM| to specify a default SVM template. % Copyright 2015 The MathWorks, Inc. t = templateSVM() %% % All properties of the template object are empty except for % |Method| and |Type|. When you pass |t| to the training function, % the software fills in the empty properties with their respective default % values. For example, the software fills the |KernelFunction| property % with |'linear'|. For details on other default values, % see <docid:stats_ug.bt9w6j6 fitcsvm>. %% % |t| is a plan for an SVM learner, and no computation occurs % when you specify it. You can pass |t| to <docid:stats_ug.bue3oc9 % fitcecoc> to specify SVM binary learners for ECOC multiclass % learning. However, by default, |fitcecoc| uses default SVM binary % learners.