summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml36
1 files changed, 26 insertions, 10 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index 1e67cbd..4646513 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -2,7 +2,8 @@
.back
%h1
%img{:src=>"/images/arrow_left_float.png", :alt=>"arrow"}
- %a{:href => to('/predict')} New Prediction
+ %a{:href => to('/predict')} New Prediction
+
/ displays all prediction results
.overview
%table{:width=>"100%", :cellspacing=>"1", :id=>"overview"}
@@ -10,11 +11,21 @@
%tr
%caption
%h2 Prediction Results:
- %i= @identifier
+
%tbody
%tr
%td{:id=>"compound"}
- %img{:src=>"#{@compound.uri}/image", :alt=>"image not available", :width=>"100"}
+ %a{:href => to("/prediction/#{CGI.escape(@compound.uri)}/details"), :id=>"linkCompound", :target=>"details_overview"}
+ %img{:src=>"#{@compound.uri}/image", :alt=>"image not available", :width=>"100"}
+ %br
+ %br
+ %img{:src=>"/images/arrow_up_float.png", :alt=>"arrow"}
+ :javascript
+ $(function() {
+ $("a#linkCompound").on('click', function(e) {
+ $('#iframe_overview').bPopup();
+ });
+ });
- count=0
/ var for rule to load neighbours page.
- @@neighbours_available = 1
@@ -32,7 +43,12 @@
= "Result:\n"
%b= p.data_entries[0][0] != nil ? p.data_entries[0][0] : "No prediction result"
%br
- = "Confidence:\n"
+ %a{:href=>"#", :title=>"", :id=>"confidence"} Confidence
+ .tooltip{:style=>"font-weight: normal; font-size: 1em; width: 50%; text-align: left;"}
+ Indicates the applicability domain of a model.
+ Predictions with a high confidence can be expected to be more reliable than predictions with low confidence.
+ Confidence values may take any value between 0 and 1.
+ For most models confidence > 0.025 is a sensible (hard) cutoff to distiguish between reliable and unreliable predictions.
= p.data_entries[0][1].round(3)
%br
%a{:href=> "#tabs", :id=>"link#{count}"}
@@ -45,9 +61,9 @@
});
- count+=1
-- if @@neighbours_available > 1
- = haml :neighbours, :layout => false
-- else
- %h2
- no neighbours available
-
+ - if @@neighbours_available > 1
+ = haml :neighbours, :layout => false
+ - else
+ %h2
+ no neighbours available
+%iframe{:id=>"iframe_overview", :name=>"details_overview", :height=>"80%", :width=>"80%", :style=>"display:none;border:0px"}