From 938141ca0059f80d14a603246e996567f5ae2f13 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 22 May 2018 14:15:17 +0000 Subject: adjusted prediction values for html --- application.rb | 4 ++++ 1 file changed, 4 insertions(+) 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"]}
#{prediction["converted_prediction_value"]}"} sorter << {"95% Prediction interval" => "#{prediction[:interval]}
#{prediction["converted_interval"]}"} sorter << {"Warnings" => prediction[:warnings].join("
")} + elsif !prediction[:value] && type == "Regression" + sorter << {"Prediction" => ""} + sorter << {"95% Prediction interval" => ""} + sorter << {"Warnings" => prediction[:warnings].join("
")} # classification elsif prediction[:value] && type == "Classification" sorter << {"Consensus prediction" => prediction["Consensus prediction"]} -- cgit v1.2.3