Permalink
Browse files

Added module name for Parameter and Problem to avoid name collision w…

…ith libsvm-ruby-swig as per Omer's pull request
  • Loading branch information...
1 parent 7af0d91 commit 29a1b090b469f62d23a4155d221d1a59b8c22ddd @tomz committed Apr 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/linear.rb
View
@@ -51,7 +51,7 @@ class LParameter
attr_accessor :param
def initialize(*args)
- @param = Parameter.new
+ @param = Liblinear::Parameter.new
@param.solver_type = L2R_LR
@param.C = 1
@param.eps = 0.01
@@ -143,7 +143,7 @@ class LProblem
def initialize(y,x,bias)
# assert_equal(y.size, x.size)
- @prob = prob = Problem.new
+ @prob = prob = Liblinear::Problem.new
@size = size = y.size
@y_array = y_array = new_int(size)

0 comments on commit 29a1b09

Please sign in to comment.