06.png" alt=""> <h2>&#21033;&#29992;&#26368;&#20339;&#30340;&#21442;&#25968;&#36827;&#34892;SVM&#32593;&#32476;&#35757;&#32451;<a name="6"></a></h2><pre class="codeinput">cmd = [<span class="string">'-c '</span>,num2str(bestc),<span class="string">' -g '</span>,num2str(bestg)];
model = svmtrain(train_wine_labels,train_wine,cmd);
</pre><h2>SVM&#32593;&#32476;&#39044;&#27979;<a name="7"></a></h2><pre class="codeinput">[predict_label,accuracy] = svmpredict(test_wine_labels,test_wine,model);

<span class="comme