summaryrefslogtreecommitdiff
path: root/views/models.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-10 12:00:48 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-10 12:00:48 +0100
commit7dccdd50be2a9215befe9018f9e5cf5a401f69a6 (patch)
treeff56d080e2d1f966f2f42f3e9db030e673402744 /views/models.haml
parent1a75cab62bb941c106252a39efb350822dd49e38 (diff)
newline added to end of uri-lists
Diffstat (limited to 'views/models.haml')
-rw-r--r--views/models.haml12
1 files changed, 10 insertions, 2 deletions
diff --git a/views/models.haml b/views/models.haml
index bd19ba8..7f4841f 100644
--- a/views/models.haml
+++ b/views/models.haml
@@ -12,7 +12,6 @@
- uri = url_for("/model/#{model.id}", :full)
%h2
= model.name
- -#%button{:onclick => "deletemodel('#{uri}')"} delete
%dl
%dt Status:
%dd
@@ -31,12 +30,21 @@
%em (model representation in OWL-DL - experts only)
- else
%em model under construction
+ = image_tag("/snake_transparent.gif")
%dt Validation:
%dd
- if model.validation_uri
- %a{:href => model.validation_uri, :accept => "text/html"} Details
+ - uri = File.join(model.validation_uri, 'statistics')
+ - yaml = RestClient.get(uri).to_s
+ - v = YAML.load(yaml)
+ %dl
+ %dt Correct predictions:
+ %dd
+ = v[:classification_statistics][:percent_correct].to_s
+ = '%'
- else
%em under construction
+ = image_tag("/snake_transparent.gif")
=# model.validation_task_uri