diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-10-05 13:22:12 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-10-05 13:22:12 +0200 |
commit | 5d4e5e463c2b87241bbb56e4658e1e26c0ed084f (patch) | |
tree | bbae8f77dbb2ac85053f1253ab518c3076e0d176 /lib/classification.rb | |
parent | adefea0e78a4f05a2c9537e643873ad61fc22a0a (diff) |
substance and nanoparticle model creation and predictions
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 03c32c4..01ba878 100644 --- a/lib/classification.rb +++ b/lib/classification.rb @@ -3,7 +3,7 @@ module OpenTox class Classification - def self.weighted_majority_vote substance:, neighbors: + def self.weighted_majority_vote descriptors:nil, neighbors: sims = {} neighbors.each do |neighbor| sim = neighbor["similarity"] |