summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-05-22 12:45:32 +0000
committergebele <gebele@in-silico.ch>2017-05-22 12:45:32 +0000
commit9aa5203dd375225996c1efe4be1a4324ddc6cda7 (patch)
treed2c7de76b020be254cc82563d36e6711fd6f1867 /lib/model.rb
parentf82f516db24cd688f8a75b2b9a27c5ac46aade67 (diff)
fix for lower min sim threshold
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 9c5c19b..475a346 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -276,7 +276,7 @@ module OpenTox
#prediction[:warnings] << "Closest neighbor has similarity < #{algorithms[:similarity][:warn_min]}. Prediction may be out of applicability domain."
#end
end
- if prediction[:warnings].empty? or threshold <= algorithms[:similarity][:min]
+ if prediction[:warnings].empty? or threshold < algorithms[:similarity][:min] or threshold <= 0.2
prediction
else # try again with a lower threshold
predict_substance substance, 0.2