JuliaML / LIBSVM.jl

LIBSVM bindings for Julia
Other
88 stars 35 forks source link

coef0 does not contain the intercept #97

Closed grsbe closed 1 year ago

grsbe commented 1 year ago

After training a SVM model, I was able to extract the model coefficients from svm.coefs, but svm.coef0 stays 0.0 after training. I am assuming the intercept is supposed to be contained in coef0 when training a svm model. If the intercept coefficient is stored somewhere else after training, then I am not able to find it.

grsbe commented 1 year ago

nevermind found it, svm.rho seems to contain the negative intercept, but might be nice to indicate that somewhere in the documentation or code.