diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-04-14 19:43:24 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-04-14 19:43:24 +0200 |
commit | 753fcc204d93d86c76860bee6e2f7d0468c3c940 (patch) | |
tree | 30fc9980de8b298ee57199c9b540408019a8976c /lib/classification.rb | |
parent | 64f1f32ced77afb278bdb7c27397c5299a73675c (diff) |
features/toxicities fixed
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 0202940..4a17546 100644 --- a/lib/classification.rb +++ b/lib/classification.rb @@ -10,7 +10,7 @@ module OpenTox confidence = 0.0 neighbors.each do |row| sim = row["tanimoto"] - row["features"][params[:prediction_feature_id].to_s].each do |act| + row["toxicities"][params[:prediction_feature_id].to_s].each do |act| weighted_sum[act] ||= 0 weighted_sum[act] += sim end |