From 5c40dfe6ca17d318a0ec0dfcfe07b174f4d71e59 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 20 Apr 2016 14:19:02 +0000 Subject: edited model details --- views/model_details.haml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/views/model_details.haml b/views/model_details.haml index 34e86ac..1be75e7 100644 --- a/views/model_details.haml +++ b/views/model_details.haml @@ -4,21 +4,19 @@ Source: %a{:href=>model.source, :target=>"external"} = model.source %br -= "Algorithm:\tLAZAR" -%br - model.classification? ? type = "Classification" : type = "Regression" = "Type:\t" = type %br - training_dataset = OpenTox::Dataset.find model.training_dataset.id -= "Training dataset:\t" -= training_dataset.source.split("/").last -%br = "Training compounds:\t" = training_dataset.compounds.size %p -%b Crossvalidation (3 independent): +- if type == "Classification" + %b Independent crossvalidations: +- else + %b Independent crossvalidations (-log10 transformed): %div.row{:id=>"validations#{model.id}", :style=>"background-color:#f5f5f5;"} - model.crossvalidations.each do |crossvalidation| %span.col-xs-4.col-sm-4.col-md-4.col-lg-4 -- cgit v1.2.3