summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-01-19 12:23:32 +0000
committergebele <gebele@in-silico.ch>2018-01-19 12:23:32 +0000
commit4aeecf41ff4659dc181fb4cad9658899d605f52c (patch)
treea3e039e11c08aa5c56725ee0e8742386b4e4b043
parent17f98faf8481942849ebad0a7b520dd7a2c04b82 (diff)
set inApp value to maybe for regression warnings used weighted majority vote
-rw-r--r--helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.rb b/helper.rb
index d423285..fd3b9f4 100644
--- a/helper.rb
+++ b/helper.rb
@@ -34,7 +34,7 @@ helpers do
output["converted_model_unit"] = converted_model_unit
if prediction[:value]
- inApp = (prediction[:warnings].join(" ") =~ /Cannot/ ? "no" : (prediction[:warnings].join(" ") =~ /may|Insufficient/ ? "maybe" : "yes"))
+ inApp = (prediction[:warnings].join(" ") =~ /Cannot/ ? "no" : (prediction[:warnings].join(" ") =~ /may|Insufficient|Weighted/ ? "maybe" : "yes"))
if prediction[:info] =~ /\b(identical)\b/i
prediction[:info] = "This compound was part of the training dataset. All information "\
"from this compound was removed from the training data before the "\