problem occurred when try to access svmclassifier/

1 回表示 (過去 30 日間)
Dhines
Dhines 2013 年 3 月 14 日
i wrote code for svmtrain code is alpha=svmtrain(x,y) get output for this
alpha =
SupportVectors: [7x1 double]
Alpha: [7x1 double]
Bias: 0.0194
KernelFunction: @linear_kernel
KernelFunctionArgs: {}
GroupNames: [10x1 double]
SupportVectorIndices: [7x1 double]
ScaleData: [1x1 struct]
FigureHandles: []
here, the result shows correctly for svmtrain,when i cal for this svmclassifier i,e..
alpha=svmclassify(alpha,test)
it show error...
??? Attempted to access svmStruct.ScaleData.scaleFactor(2); index out of bounds because numel(svmStruct.ScaleData.scaleFactor)=1.
Error in ==> svmclassify at 109 sample(:,c) = svmStruct.ScaleData.scaleFactor(c) * ...

回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by