diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-18 20:54:23 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-18 20:54:23 +0100 |
commit | 345bff29eb5eb5d15677ef4c038a8fc0fe9be8b8 (patch) | |
tree | 4ebf234b9d972f06ca92b8e09b5b5ce77d976283 /views/models.haml | |
parent | 405a9ee415b547e7aef8a42e25d2095626dd3e9b (diff) | |
parent | bea1c77a544b74abc9a77f5bea7db00f9ebdabe9 (diff) |
more detailed model information in toxcreate
Diffstat (limited to 'views/models.haml')
-rw-r--r-- | views/models.haml | 74 |
1 files changed, 49 insertions, 25 deletions
diff --git a/views/models.haml b/views/models.haml index e80695f..9d73c2c 100644 --- a/views/models.haml +++ b/views/models.haml @@ -15,37 +15,61 @@ %dl %dt Status: %dd + = image_tag("/snake_transparent.gif") if model.status.match(/started|created/) = model.status ( %a{:href => url_for("/model/#{model.id}/delete"), :onclick => 'return confirm("Are you sure?");'} delete ) %dt Started: %dd= model.created_at - %dt Details: - %dd= model.messages - %dt Download: - %dd - - if model.uri + %dt Training compounds: + %dd= model.nr_compounds + %dt Warnings: + - if model.warnings + %dd= model.warnings + - else + %dd - + + - if model.status == 'completed' + %dt Algorithm: + %dd + %a{:href => model.algorithm} #{File.basename model.algorithm} + %dt Descriptors: + %dd + %a{:href => 'http://www.maunz.de/libfminer2-bbrc-doc/'} Fminer backbone refinement classes + %dt Training dataset: + %dd + %a{:href => "#{model.training_dataset}.rdf"} RDF/XML + , + %a{:href => "#{model.training_dataset}.yaml"} YAML + %em (more formats to be added) + %dt Feature dataset: + %dd + %a{:href => "#{model.feature_dataset}.rdf"} RDF/XML + , + %a{:href => "#{model.feature_dataset}.yaml"} YAML + %em (more formats to be added) + %dt Model: + %dd -# %a{:href => model.uri, :accept => "application/x-yaml"} yaml - %a{:href => model.uri, :accept => "application/rdf+xml"} OWL-DL model representation - %em (experts only) - - else - %em model under construction - = image_tag("/snake_transparent.gif") - %dt Validation: - %dd - - if model.validation_uri - - 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 + %a{:href => "#{model.uri}.rdf"} RDF/XML + , + %a{:href => "#{model.uri}.yaml"} YAML + %em (more formats to be added) + %dt Validation: + %dd + - if model.validation_uri + - 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 |