liblinear-ruby-swig
liblinear-ruby-swig copied to clipboard
failing default constant L2_LR in linear.rb constructor
I run the latest code from github (as of 11/1/2011) and am getting this error:
liblinear-ruby-swig-0.2.1/lib/linear.rb:55:in initialize': uninitialized constant LParameter::L2_LR (NameError) from test.rb:8:in
new'
from test.rb:8:in `
Looks like L2_LR constant is outdated. So the constructor fails.
I made it work by I replacing L2_LR with L2R_LR on line 55 in linear.rb
Please apply this patch to the master branch if this is the right fix.
Thanks, Dennis.
Thanks Dennis for pointing that out. Looked something wrong with github, some of the files went back to the older version and the timestamps on some of the files are still wrong, I had to push the commit again.