diff options
author | gebele <gebele@in-silico.ch> | 2013-05-21 16:17:44 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-05-21 16:17:44 +0200 |
commit | 5cd95518ce65906ee80a94dcb3b16c3975e9bc80 (patch) | |
tree | fd5597e7447423930d6d3df7d4a2cac400de40ea /views/prediction.haml | |
parent | 03f40594581a3046ebba74239ca70e598ec98ad6 (diff) |
minor changes, added customized tooltips
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 36 |
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"} |