matlab - FITCSVM not working the same as SVMTRAIN -
i have implemented svm classifier, using matlab function svmtrain
, , classified set of test data, using svmclassify
. used following code train classifier:
svmstruct = svmtrain(features, labels, 'options', options, 'boxconstraint', 10, 'kernel_function', 'rbf', 'rbf_sigma', 27, 'showplot', 'false')
i have set options
parameter below:
options = statset('maxiter', inf)
since matlab stopping support svmtrain
, tried move fitcsvm
, has advised. used following code:
svmmodel = fitcsvm(features, labels, 'iterationlimit', inf,'boxconstraint', 10, 'kernelfunction', 'rbf', 'kernelscale', 27)
the problem latter converges fast, message exiting active set upon convergence due deltagradient.
, , when use predict
function in order classify set of test data, not lead same results used svmtrain
, svmclassify
. may have caused problem? using fitcsvm
function correctly?
Comments
Post a Comment