tomz-libsvm-ruby-swig 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/svm.rb +1 -6
- metadata +1 -1
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ task :default => ["sync_files","make_gem"]
|
|
5
5
|
|
6
6
|
EXT = "ext/svm?.#{Hoe::DLEXT}"
|
7
7
|
|
8
|
-
Hoe.new('libsvm-ruby-swig', '0.3.
|
8
|
+
Hoe.new('libsvm-ruby-swig', '0.3.3') do |p|
|
9
9
|
p.author = 'Tom Zeng'
|
10
10
|
p.email = 'tom.z.zeng@gmail.com'
|
11
11
|
p.url = 'http://www.tomzconsulting.com'
|
data/lib/svm.rb
CHANGED
@@ -181,7 +181,7 @@ class Problem
|
|
181
181
|
end
|
182
182
|
|
183
183
|
class Model
|
184
|
-
attr_accessor :model
|
184
|
+
attr_accessor :model
|
185
185
|
|
186
186
|
def initialize(arg1,arg2=nil)
|
187
187
|
if arg2 == nil
|
@@ -211,11 +211,6 @@ class Model
|
|
211
211
|
#check if valid probability model
|
212
212
|
@probability = svm_check_probability_model(@model)
|
213
213
|
|
214
|
-
@objs = []
|
215
|
-
for i in (0..@labels.size-1)
|
216
|
-
@objs << svm_get_obj(@model, i)
|
217
|
-
end if arg2 != nil
|
218
|
-
|
219
214
|
end
|
220
215
|
|
221
216
|
def predict(x)
|