diff options
-rw-r--r-- | application.rb | 4 |
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"]} |