summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2016-04-20 14:19:02 +0000
committergebele <gebele@in-silico.ch>2016-04-20 14:19:02 +0000
commit5c40dfe6ca17d318a0ec0dfcfe07b174f4d71e59 (patch)
tree1ddac20f7ded1adcf0cab3cec449c40569af954e
parent512458e2489c8cc12a9d539d8895c1802d7b081a (diff)
edited model details
-rw-r--r--views/model_details.haml10
1 files 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