summaryrefslogtreecommitdiff
path: root/lib/classification.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-10-05 13:22:12 +0200
committerChristoph Helma <helma@in-silico.ch>2016-10-05 13:22:12 +0200
commit5d4e5e463c2b87241bbb56e4658e1e26c0ed084f (patch)
treebbae8f77dbb2ac85053f1253ab518c3076e0d176 /lib/classification.rb
parentadefea0e78a4f05a2c9537e643873ad61fc22a0a (diff)
substance and nanoparticle model creation and predictions
Diffstat (limited to 'lib/classification.rb')
-rw-r--r--lib/classification.rb2
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"]