Effacer les filtres
Effacer les filtres

problem occurred when try to access svmclassifier/

2 vues (au cours des 30 derniers jours)
Dhines
Dhines le 14 Mar 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) * ...

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by