資源簡介
這是一個matlab仿真程序,可以直接使用,顯示圖示,很直觀,方便初學(xué)者理解SVM的分類原理
代碼片段和文件信息
classdef?LinearClassifier???%A?linear?classifier?that?is?defined?by?a?2-dimensional?weight?vector?and
??%a?threshold?value.?The?decision?boundary?is?perpendicular?to?the?weight
??%vector?offset?from?the?origin?by?an?amount?proportional?to?-theta/|w|^2.
??
??properties
????%The?weight?vector?and?threshold?value
????weights;
????theta;
????%The?decision?boundary?in?terms?of?gradient/intercept?(i.e.?y=mx+c)
????boundary_grad;
????boundary_inte;
????%Callback?function?for?invoke?on?weight?change
????callback;
????%Indices?of?support?vectors
????sv_indices;
????%Whether?the?classifier?has?been?trained?(i.e.?an?SVM)?or?has?been
????%manually?positioned
????trained?=?false;
??end
??
??methods
????
????function?a?=?LinearClassifier(weights?callback)
??????a.weights?=?weights‘;
??????%I
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1340??2011-03-31?15:46??license.txt
?????目錄???????????0??2011-03-31?15:45??svm_demo\
?????文件?????????410??2010-03-02?14:50??svm_demo\data.mat
?????文件????????9883??2011-03-31?15:45??svm_demo\LinearClassifier.m
?????文件???????34228??2011-03-31?15:41??svm_demo\svm_demo.m
?????文件???????33246??2010-09-30?08:41??svm_demo\svm_demo.m~
- 上一篇:核主元分析kpca程序
- 下一篇:立體匹配sad算法
評論
共有 條評論