diff options
author | gebele <gebele@in-silico.ch> | 2017-05-22 12:45:32 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2017-05-22 12:45:32 +0000 |
commit | 9aa5203dd375225996c1efe4be1a4324ddc6cda7 (patch) | |
tree | d2c7de76b020be254cc82563d36e6711fd6f1867 | |
parent | f82f516db24cd688f8a75b2b9a27c5ac46aade67 (diff) |
fix for lower min sim threshold
-rw-r--r-- | lib/model.rb | 2 |
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 |