diff options
author | gebele <gebele@in-silico.ch> | 2015-03-12 10:51:00 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2015-03-12 10:51:00 +0100 |
commit | ed6864d4fb2e597dcdfdac179dd4645e52c30bae (patch) | |
tree | 793bf172e0167ef3b5c1857d07adf87541aa3d63 | |
parent | 8969a13eb7872857cd81a4fa847677c226aa8a72 (diff) |
fixed probability round
-rw-r--r-- | views/prediction.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index edf6259..6ae2b7c 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -101,7 +101,8 @@ %b = "Probability: " - unless result == "No prediction result." or confidence == "--" - = "#{@cv.probabilities( confidence, result )[:probs][result].round(3)*100} %" + - prob = @cv.probabilities( confidence, result )[:probs][result]*100 + = "#{prob.round(3)} %" %p .confidence %b Confidence: |