| ²é¿´: 2785 | »Ø¸´: 0 | |||
samggyy½ð³æ (СÓÐÃûÆø)
|
[ÇóÖú]
MatlabÈçºÎʹÓûæÍ¼»³ö3D SVMµÄdecision boundary£¿
|
|
RT£¬MatlabÖпÉÒÔ»³ö¶þάµÄSVMµÄdecision boundary£¬´úÂëÈçÏ£¬ load fisheriris; features = meas(1:100, ;featureSelcted = features(1:100,1:2); groundTruthGroup = species(1:100); svmStruct = svmtrain(featureSelcted, groundTruthGroup, ... 'Kernel_Function', 'rbf', 'boxconstraint', Inf, 'showplot', true, 'Method', 'QP'); svmClassified = svmclassify(svmStruct,featureSelcted,'showplot',true); Èç¹ûʹÓÃÈýάµÄÌØÕ÷£¬¼´°Ñ´úÂë¸ÄΪfeatureSelcted = features(1:100,1:3); ÎÞ·¨³öÒ»¸öÈýάµÄ³¬Æ½ÃæÁË¡£Ë¼Â·¿ÉÄÜÊÇ£º cubeXMin = min(featureSelcted(:,1))-0.5; cubeYMin = min(featureSelcted(:,2))-0.5; cubeZMin = min(featureSelcted(:,3))-0.5; cubeXMax = max(featureSelcted(:,1))+0.5; cubeYMax = max(featureSelcted(:,2))+0.5; cubeZMax = max(featureSelcted(:,3))+0.5; cubeMesh = meshgrid(cubeXMin:0.5:cubeXMax,cubeYMin:0.5:cubeYMax,cubeZMin:0.5:cubeZMax); sv = svmStruct.SupportVectors; alphaHat = svmStruct.Alpha; bias = svmStruct.Bias; kfun = svmStruct.KernelFunction; kfunargs = svmStruct.KernelFunctionArgs; f = (feval(kfun,sv,cubeMesh,kfunargs{:})'*alphaHat( ) + bias;decisionBoundary = sign(f); decisionBoundaryInd = find(decisionBoundary==0); figure, scatter3(featureSelcted(:,1),featureSelcted(:,2),featureSelcted(:,3)); surf(decisionBoundaryInd); µ«ÊDz»ÖªµÀÔõôÍê³É£¬Çë½ÌÓÐûÓÐÈËÖªµÀÔõô×öµÄ¡£Ð»Ð»£¡ ![]() ÓÐÒ»¸öÓÃRдµÄÀý×Ó£º http://stackoverflow.com/questio ... -svm-fit-hyperplane »¹ÓÐÁ½ÆªÂÛÎÄÖÐÒ²ÓÐ×öµ½£º http://www.sciencedirect.com/sci ... i/S0304394010006324 http://www.mathematica-journal.c ... ation-with-kernels/ |
» ÊÕ¼±¾ÌûµÄÌÔÌûר¼ÍƼö
MATLABÏà¹Ø |
» ²ÂÄãϲ»¶
ÈðµäÁÖѩƽ´óѧ²©Ê¿ºóÕÐÆ¸£üPEC Water Splitting ·½Ïò
ÒѾÓÐ130È˻ظ´
PRBͶ¸å£¬Acknowledgment sent to author״̬ʮÌìÁË
ÒѾÓÐ3È˻ظ´
ÎïÀíѧIÂÛÎÄÈóÉ«/·ÒëÔõôÊÕ·Ñ?
ÒѾÓÐ106È˻ظ´
PVAÈܽâ
ÒѾÓÐ2È˻ظ´
»ù½ðÉêÇë
ÒѾÓÐ44È˻ظ´
CSCÓëÐÂÎ÷À¼Î¬¶àÀûÑÇ´óѧPhD½±Ñ§½ðÏîÄ¿
ÒѾÓÐ0È˻ظ´
ÐÂÎ÷À¼RobinsonÑо¿Ëù ÕÐÆ¸CSC¹«ÅÉ·ÃÎÊÈËÔ±
ÒѾÓÐ0È˻ظ´
°ïÎÒµÄÓ¢Óï¿ÚÓïÀÏʦÕÒѧÉú
ÒѾÓÐ0È˻ظ´
ʲôʱºò¿ª½±£¿
ÒѾÓÐ11È˻ظ´
É¢½ð±ÒÆí¸£
ÒѾÓÐ94È˻ظ´
ÕÒµ½Ò»Ð©Ïà¹ØµÄ¾«»ªÌû×Ó£¬Ï£ÍûÓÐÓÃŶ~
ÇóÖúsvmÔÚmatlabÖеÄÓ¦ÓÃ
ÒѾÓÐ7È˻ظ´
¿ÆÑдÓСľ³æ¿ªÊ¼£¬ÈËÈËΪÎÒ£¬ÎÒΪÈËÈË









;
»Ø¸´´ËÂ¥

µã»÷ÕâÀïËÑË÷¸ü¶àÏà¹Ø×ÊÔ´
20