www.pudn.com > maldicode.zip > testbiomarkers.m


clear all; 
 
load CaseCirr 
 
% index = [174 93 268 133 90]; 
index = [76,139,92,101,219;] 
% index = [101 135 6 89 58] 
%% TEST ACCURACY ON PREDICTION DATASET 
% clear all 
 
% Create a SVM Classifier 
[AlphaY, SVs, Bias, Parameters, nSV, nLabel] = LinearSVC(sample_tr(index,:), label_tr,2); 
 
% Test the constructed linear SVM Classifier 
 
[ClassRate_tr, DecisionValue_tr, Ns_tr, ConfMatrix_tr, PreLabels_tr]= SVMTest(sample_tr(index,:), label_tr, AlphaY, SVs, Bias,Parameters, nSV, nLabel); 
 
[ClassRate_pr, DecisionValue_pr, Ns_pr, ConfMatrix_pr, PreLabels_pr]= SVMTest(sample_pr(index,:), label_pr, AlphaY, SVs, Bias,Parameters, nSV, nLabel); 
 
ConfMatrix_tr*100 
 
ConfMatrix_pr*100 
%%%%%%%%%%%%%%%%%%%