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

fix model specification with two liblinear models #826

Closed
topepo opened this issue Feb 5, 2018 · 0 comments
Closed

fix model specification with two liblinear models #826

topepo opened this issue Feb 5, 2018 · 0 comments

Comments

@topepo
Copy link
Owner

topepo commented Feb 5, 2018

correct:

>> $svmLinearWeights2$fit 
>> function (x, y, wts, param, lev, last, classProbs, ...) 
>> { 
>> model_type <- if (param$Loss == "L2") 
>> _2_ 
>> else _3_ 

For svmLinear3 it should be

>> > if(param$Loss == "L2") { 
>> >   model_type <- if(is.factor(y)) 2 else 12 
>> > } else model_type <- if(is.factor(y)) 3 else 13 
topepo added a commit that referenced this issue Mar 6, 2018
@topepo topepo closed this as completed Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant