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

uninitialized constant L2R_LR

Open hohyon-ryu opened this issue 14 years ago • 2 comments

Hi Tomz,

Thank you sooo much for your nice swig implementations of LibSVM and LibLinear. I'm trying to switch from libSVM to libLinear, but I could not run the test code successfully with "uninitialized constant L2R_LR" error. Where is it defined?

Thanks!

hohyon-ryu avatar Jun 14 '11 17:06 hohyon-ryu

the constants are defined in https://github.com/tomz/liblinear-ruby-swig/blob/master/ext/linear.h

tomz avatar Jun 16 '11 00:06 tomz

Thank you! I just solved the issue by copying all the files except models from liblinear-1.51/ruby to the directory that holds my ruby scripts.

hohyon-ryu avatar Jun 16 '11 14:06 hohyon-ryu