From d70373fb5a35740f1246d9a37ce1567e899c8a1a Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 31 Mar 2016 10:53:45 +0200 Subject: catch empty pred interval --- views/prediction.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/prediction.haml b/views/prediction.haml index aeaafdc..f99df75 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -53,7 +53,7 @@ / TODO probability - if type == "Regression" %b 95% Prediction interval: - - interval = prediction[:prediction_interval].collect{|i| i.round(2)} + - interval = prediction[:prediction_interval].nil? ? "[ - - ]" : prediction[:prediction_interval].collect{|i| i.round(2)} = interval - else %b Confidence: -- cgit v1.2.3