problem occurred when try to access svmclassifier/

1 view (last 30 days)
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) * ...

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!