summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-09-11 17:50:13 +0200
committergebele <gebele@in-silico.ch>2013-09-11 17:50:13 +0200
commit3ae04ef7fac5bbc20f464c1cb29c8ffebc820dce (patch)
tree8d8cf704572f3a8c7fcf09668647401df16f7f0c /views/prediction.haml
parent27943bda280ffbb3f2a7d147dc02be1eb8b7ea2d (diff)
added ote logo
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index c4ef460..7f94a2e 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -44,14 +44,23 @@
- c = "non-carcinogen"
- when /(1|true)/
- c = "carcinogen"
+ - else
+ - c = Array.new
+ - c[0] = p.data_entries[0][0].round(3)
%td
%b{:class => "title"}
= @@prediction_models[count].title.split(" ").first
%br
%br
+ / classification, regression
+ %b Type:
+ %br
%b Result:
%b{:class => c[0]}
- = (c != '' ? c : "No prediction result.")
+ - if c.class == String
+ = (c != '' ? c : "No prediction result.")
+ - else
+ = (c[0] != '' ? c[0] : "No prediction result.")
/ title must be empty for tooltip
%a{:href=>"#result", :title=>"", :id=>"result"}
%img{:src=>"/images/info_white.png"}