diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-03 18:14:20 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-03 18:14:20 +0100 |
commit | aca886bf82e7ebf5a9d76642614418ed983ab45e (patch) | |
tree | bdd9b22fccfff637dddd0b10d4800a8e41fe8382 /lib/ot_predictions.rb | |
parent | 7906047a423d94692581ac6aa15295924c8b89db (diff) |
adding weighted_accuracy, change accuracy computation, some minor changes
Diffstat (limited to 'lib/ot_predictions.rb')
-rwxr-xr-x | lib/ot_predictions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index e28f35b..b0e9720 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -165,7 +165,9 @@ module Lib end raise "no array" unless v.is_a?(Array) if v.size>1 - raise "multiple values" + v.uniq! + raise "not yet implemented: multiple non-equal values "+compound.to_s+" "+v.inspect if v.size>1 + v = v[0] elsif v.size==1 v = v[0] else |