summaryrefslogtreecommitdiff
path: root/views/model.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2010-05-20 00:00:37 +0200
committermr <mr@mrautenberg.de>2010-05-20 00:00:37 +0200
commite7cf59710ed84378e70c790919c785a41715ed68 (patch)
treefa38bbfeb03408506937991874255919f6f0fe8c /views/model.haml
parent45ff8cea76fb98b4121014cfdf0d8202700a2a63 (diff)
split validation view, reload model if model.validation_satus is not 'Completed'
Diffstat (limited to 'views/model.haml')
-rw-r--r--views/model.haml51
1 files changed, 2 insertions, 49 deletions
diff --git a/views/model.haml b/views/model.haml
index b255e80..dc003f6 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -54,52 +54,5 @@
,
%a{:href => "#{model.uri}.yaml"} YAML
%em (experts, models cannot be exported in Excel)
- %dt
- Validation:
- - if model.validation_report_uri
- %a{:href => model.validation_report_uri, :target => "_blank"} (more details)
- %dd
- - if model.validation_uri
- - v = model.validation
- - if v == "Service not available"
- = v
- - else
- %dl
- %dt Number of predictions:
- %dd= v[:n]
- %dt Correct predictions:
- %dd
- = v[:correct_predictions]
- = '%'
- %dt
- %a{:href => "http://en.wikipedia.org/wiki/Receiver_operating_characteristic", :target => "_blank"} Weighted area under ROC:
- %dd
- = v[:weighted_area_under_roc]
- %dt
- %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Specificity:
- %dd= v[:specificity]
- %dt
- %a{:href => "http://en.wikipedia.org/wiki/Sensitivity_and_specificity", :target => "_blank"} Sensitivity:
- %dd= v[:sensitivity]
- %dt
- %a{:href => "http://en.wikipedia.org/wiki/Confusion_matrix", :target => "_blank"} Confusion Matrix:
- %dd
- %table
- %tr
- %th
- %th Measured
- %tr
- %th Predicted
- %th active
- %th inactive
- %tr
- %th active
- %td= v[:tp]
- %td= v[:fp]
- %tr
- %th inactive
- %td= v[:fn]
- %td= v[:tn]
- - else
- = image_tag("/snake_transparent.gif") if model.validation_status == "Running"
- %a{:href => model.validation_task_uri} #{model.validation_status}
+ = haml :model_validation, :locals=>{:model=>model}, :layout => false
+ \ No newline at end of file