From d158443709b03194fe71350f4970dfd167ec6035 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 26 Oct 2015 16:15:55 +0000 Subject: consistend unit display;fixed type definition for neighbors;added neighbors view also if database hit --- views/model_details.haml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'views/model_details.haml') diff --git a/views/model_details.haml b/views/model_details.haml index f539a70..e5886e7 100644 --- a/views/model_details.haml +++ b/views/model_details.haml @@ -18,7 +18,7 @@ Source: = training_dataset.compounds.size %p -%b Validation (repeated): +%b Crossvalidation (3 independent): %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 @@ -96,6 +96,11 @@ Source: %td -#= "Confusion Matrix:\t" -#= cv.confusion_matrix + %br + -#%p + = "Confidence plot:" + -#%p{:id=>"confp#{cv.id}", :style=>"transform:scale(0.5);margin-left:-30%;margin-top:-30%;padding:0;"} + = cv.confidence_plot - if model.regression? %br = "Root mean squared error:\t" @@ -112,10 +117,12 @@ Source: %br = "R square:\t" = cv.r_squared.round(3) if cv.r_squared - /%br - /= "Correlation plot" - /= cv.correlation_plot - /%br - /= "Confidence plot:" - /= cv.confidence_plot + -#%p + = "Correlation plot" + -#%p{:id=>"corrp#{cv.id}", :style=>"transform:scale(0.5);margin-left:-30%;margin-top:-30%;margin-bottom:0;padding:0;"} + =cv.correlation_plot + -#%p + = "Confidence plot:" + -#%p{:id=>"confp#{cv.id}", :style=>"transform:scale(0.5);margin-left:-30%;margin-top:-30%;margin-bottom:0;padding:0;"} + = cv.confidence_plot %br -- cgit v1.2.3