diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-08-25 17:20:55 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-08-25 17:20:55 +0200 |
commit | f8faf510b4574df1a00fa61a9f0a1681fc2f4857 (patch) | |
tree | acdbe6666ca5f528be368c6f9fdf4d7fb51d031e /lib/classification.rb | |
parent | 8c6c59980bc82dc2177147f2fe34adf8bfbc1539 (diff) |
Experiments added
Diffstat (limited to 'lib/classification.rb')
-rw-r--r-- | lib/classification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classification.rb b/lib/classification.rb index 723c66f..0d47983 100644 --- a/lib/classification.rb +++ b/lib/classification.rb @@ -3,7 +3,7 @@ module OpenTox class Classification - def self.weighted_majority_vote neighbors + def self.weighted_majority_vote compound, neighbors return {:value => nil,:confidence => nil,:warning => "Cound not find similar compounds."} if neighbors.empty? weighted_sum = {} sim_sum = 0.0 |