testpsvm.m
来自「粒子群算法」· M 代码 · 共 16 行
M
16 行
function [y,t] = testKSVM(B1,A1,C1)tic%UNTITLED2 Summary of this function goes here% Detailed explanation goes heremax_ev =5; %选择主元个数[COEFF,SCORE,latent,tsquare]=princomp(A1);A2=A1*COEFF(:,1:max_ev);C2=C1*COEFF(:,1:max_ev);model = svmtrain(B1, A2, '-s 3 -t 2 -g 1 -c 60 -p 1.5');[y, accuracy] = svmpredict(B1, C2, model);toct=toc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?