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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -