Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svm save model no c param for RBF #116

Closed
lukadt opened this issue Feb 22, 2018 · 1 comment
Closed

svm save model no c param for RBF #116

lukadt opened this issue Feb 22, 2018 · 1 comment

Comments

@lukadt
Copy link

lukadt commented Feb 22, 2018

I just train my model with grid search and cross validation to get optimal c and gamma params using c_svm and rbf kernel. Upon saving the svm to disk it seems as if C param is not saved in svm_save_model as when after I call svm_read_problem the C params is zero.
Am i totally missing something or is there a real issue?

libsvm/svm.cpp

Line 2647 in 88a1881

int svm_save_model(const char *model_file_name, const svm_model *model)

@cjlin1
Copy link
Owner

cjlin1 commented Dec 22, 2018

This isn't an issue as C isn't used in prediction. Only parameters needed for prediction are stored in the model.

@cjlin1 cjlin1 closed this as completed Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants