summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-05-22 14:15:17 +0000
committergebele <gebele@in-silico.ch>2018-05-22 14:15:17 +0000
commit938141ca0059f80d14a603246e996567f5ae2f13 (patch)
treea2fbaf43dd01feb04b638f92c71f8a3430aeab59
parent43b257c759ae3b83ae68b0448e2e4cff67f951be (diff)
adjusted prediction values for html
-rw-r--r--application.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/application.rb b/application.rb
index ca1f2ee..0b3ebe3 100644
--- a/application.rb
+++ b/application.rb
@@ -92,6 +92,10 @@ get '/task/?' do
sorter << {"Prediction" => "#{prediction["prediction_value"]}</br>#{prediction["converted_prediction_value"]}"}
sorter << {"95% Prediction interval" => "#{prediction[:interval]}</br>#{prediction["converted_interval"]}"}
sorter << {"Warnings" => prediction[:warnings].join("</br>")}
+ elsif !prediction[:value] && type == "Regression"
+ sorter << {"Prediction" => ""}
+ sorter << {"95% Prediction interval" => ""}
+ sorter << {"Warnings" => prediction[:warnings].join("</br>")}
# classification
elsif prediction[:value] && type == "Classification"
sorter << {"Consensus prediction" => prediction["Consensus prediction"]}