problem occurred when try to access svmclassifier/

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Statistics 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