tomz/liblinear-ruby-swig — Issue #3: failing constant L2_LR in linear.rb constructor
Author: dennismaskevich
Created: 2011-11-01 21:20:30+00:00
State: open

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.