diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-08-06 13:30:15 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-08-06 13:30:15 +0200 |
commit | 4315a4ef2bfc625dc2f3ed69dd6c90ddb0dd5593 (patch) | |
tree | 82d7520fba83cb2d5652ae7f61767cb112e72f94 /views/prediction.haml | |
parent | 05ed7ad074f48cf36b60740665c1a0962ff0a55d (diff) |
lazar details implemented
Diffstat (limited to 'views/prediction.haml')
-rw-r--r-- | views/prediction.haml | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/views/prediction.haml b/views/prediction.haml index 94d7987..dd7d155 100644 --- a/views/prediction.haml +++ b/views/prediction.haml @@ -15,17 +15,10 @@ - if p[:measured_activities] %br - p[:measured_activities].each do |a| - - if activity(a) == 'active' - .active - = activity(a) - - elsif activity(a) == 'inactive' - .inactive - = activity(a) - - else - = a + = activity_markup(a) %br ( - %a{:href => "#", :id => "linkTrainingData#{p.object_id}"} Training data + %a{:href => "#", :id => "linkTrainingData#{p.object_id}"} Measured activity :javascript $("a#linkTrainingData#{p.object_id}").click(function () { $("dl#training_data").toggle(); @@ -33,18 +26,7 @@ ) - else - - if activity(p[:prediction]) == 'active' - .active - = activity(p[:prediction]) - - elsif activity(p[:prediction]) == 'inactive' - .inactive - = activity(p[:prediction]) - - elsif p[:prediction].is_a?(Float) - .other - = sprintf('%.03g', p[:prediction]) - - else - .other - %em= p[:prediction].to_s + = activity_markup(p[:prediction]) - if p[:confidence] %br ( @@ -61,13 +43,5 @@ %input{:type => :hidden, :name => :model_uri, :value => p[:model_uri]} %input{ :type => "submit", :value => "Details"} -%dl#confidence{ :style => "display: none;" } - %dt Confidence: - %dd 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. - - -%dl#training_data{ :style => "display: none;" } - %dt Training data: - %dd Experimental result(s) from the training dataset are displayed here. - - += haml :confidence, :layout => false += haml :training_data, :layout => false |