Problem training SVM with sigmoid kernel

asked 2014-12-03 15:34:20 -0600

Jors gravatar image

Hi all,

I have to make an activity classification based on simple features I extract from images.

I am using support vector machines from the opencv machine learning library for this. So far I'm getting very decent results with RBF and Polynomial kernels, but the accuracy and precision for the sigmoid kernel don't seem to get higher than 0.12 .

In literature I found that the sigmoid kernel is only a pd (positive definite) kernel when gamma >0 && coef0<0, however, i can't try this because opencv requires all kernel parameters to be positive. I have checked the source for the SVM diagonally, but all i can see is this function where both gamma and coef0 get inverted.

calc_non_rbf_base( vcount, var_count, vecs, another, results,
                      -2*params.gamma, -2*params.coef0 );

Has anyone ever had succes with the sigmoid kernel in opencv ?

edit retag flag offensive close merge delete

Comments

the performance of sigmoid kernel in opencv is quite worst than it in LIBSVM. but other kernels look same as them in LIBSVM

eipoa gravatar imageeipoa ( 2017-05-04 10:32:19 -0600 )edit