diff options
author | gebele <gebele@in-silico.ch> | 2018-05-22 14:15:17 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-05-22 14:15:17 +0000 |
commit | 938141ca0059f80d14a603246e996567f5ae2f13 (patch) | |
tree | a2fbaf43dd01feb04b638f92c71f8a3430aeab59 /application.rb | |
parent | 43b257c759ae3b83ae68b0448e2e4cff67f951be (diff) |
adjusted prediction values for html
Diffstat (limited to 'application.rb')
-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"]} |