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
Register parameters of SVM #7
Conversation
void CSVMLin::init() | ||
{ | ||
SG_ADD( | ||
&use_bias, "use_bias", "Indicates if bias is used.", MS_NOT_AVAILABLE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder: are those things not registered in the base class?
If not why not?
m_parameters->add(&count, "count", "count"); | ||
m_parameters->add(&use_bias, "use_bias", "Indicates if bias is used."); | ||
m_parameters->add(&use_regularized_bias, "use_regularized_bias", "Indicates if bias is regularized."); | ||
SG_ADD(&C1, "C1", "Cost constant 1.", MS_AVAILABLE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because then we need to register them everytime ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually they don't inherit from SVM base class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems quite mad....
can you see any idea why that is?
On the other hand, you are just porting examples, so no need to refactor things ....
m_parameters->add(&use_regularized_bias, "use_regularized_bias", "Indicates if bias is regularized."); | ||
SG_ADD(&C1, "C1", "Cost constant 1.", MS_AVAILABLE); | ||
SG_ADD(&C2, "C2", "Cost constant 2.", MS_AVAILABLE); | ||
SG_ADD(&wscale, "wscale", "W scale", MS_NOT_AVAILABLE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these parameters necessary to be accessible from the outside/equals/serilazation, or are they only to store the intermediate state of training?
anyways, will merge for now and we can come back to it |
No description provided.