Skip to content

failing default constant L2_LR in linear.rb constructor #3

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions