liblinear-ruby-swig icon indicating copy to clipboard operation
liblinear-ruby-swig copied to clipboard

failing default constant L2_LR in linear.rb constructor

Open ghost opened this issue 13 years ago • 1 comments

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:innew' 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.

ghost avatar Nov 01 '11 21:11 ghost

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.

tomz avatar Nov 25 '11 14:11 tomz