&#21464;&#21270;&#33539;&#22260;&#26159; 2^(-4),2^(-3.5),...,2^(4),</span>
[bestacc,bestc,bestg] = SVMcgForClass(train_wine_labels,train_wine,-2,4,-4,4,3,0.5,0.5,0.9);
<span class="comment">% &#25171;&#21360;&#31934;&#32454;&#36873;&#25321;&#32467;&#26524;</span>
disp(<span class="string">'&#25171;&#21360;&#31934;&#32454;&#36873;&#25321;&#32467;&#26524;'</span>);
str = sprintf( <span class="string">'Best Cross Validation Accuracy = %g%% Best c = %g Best g = %g'</span>,bestacc,bestc,bestg);
disp(str);
</pre>