summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-04-11 09:53:50 +0200
committerAndreas Maunz <andreas@maunz.de>2012-04-11 09:53:50 +0200
commit87bd2a6e7521eb27df7b47292d2d46fd5a45443e (patch)
tree6144eed396df52d3a18277dfc2022bafe1187470
parent8a199a09a6d9ac8b0349af0d7c5b5320bdcec9b5 (diff)
Fixed forced conversion to stringjl
-rw-r--r--lib/prediction_data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prediction_data.rb b/lib/prediction_data.rb
index 42da5fc..d387d24 100644
--- a/lib/prediction_data.rb
+++ b/lib/prediction_data.rb
@@ -270,7 +270,7 @@ module Lib
def self.classification_vals(dataset, compound, feature, accept_values)
v_indices = []
values(dataset, compound, feature).each do |v|
- i = accept_values.index(v.to_s)
+ i = accept_values.index(v)
raise "illegal class_value of prediction (value is '"+v.to_s+"'), accept values are "+
accept_values.inspect unless v==nil or i!=nil
v_indices << i
@@ -294,4 +294,4 @@ module Lib
v_mod
end
end
-end \ No newline at end of file
+end