diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-04-24 09:33:03 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-04-24 09:33:03 +0200 |
commit | 9ab6a7eb4d84efb7453263e7f14f4259fc1a6692 (patch) | |
tree | 2c1f4486b6f1d34db03ef38ca0209db4d6fdc1e4 | |
parent | 61552e6d87fcb3a4df951b9bcd2fcabd841e0a54 (diff) | |
parent | 97f088e626794f83ae093f8849f7fec369dd88db (diff) |
Merge branch 'development' of github.com:opentox/validation into development
-rw-r--r-- | lib/prediction_data.rb | 4 |
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 |