From 4aeecf41ff4659dc181fb4cad9658899d605f52c Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 19 Jan 2018 12:23:32 +0000 Subject: set inApp value to maybe for regression warnings used weighted majority vote --- helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "\ -- cgit v1.2.3