problem occurred when try to access svmclassifier/

1 Ansicht (letzte 30 Tage)
Dhines
Dhines am 14 Mär. 2013
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) * ...

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by