From 668e485e63715d0dfa4e6e2f70323fd1ecb95ee6 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 6 Nov 2017 15:13:51 +0000 Subject: various small fixes --- application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application.rb b/application.rb index 5baec21..c2c4fa7 100644 --- a/application.rb +++ b/application.rb @@ -50,8 +50,6 @@ get '/task/?' do smiles = compound.smiles task = Task.find(params[:predictions].to_s) unless task.predictions[params[:model]].nil? - model = Model::Validation.find params[:model].to_s - type = (model.regression? ? "Regression" : "Classification") if params[:model] == "Cramer" prediction = task.predictions[params[:model]] html = "" @@ -62,6 +60,8 @@ get '/task/?' do string += "
" html += "#{string}" else + model = Model::Validation.find params[:model].to_s + type = (model.regression? ? "Regression" : "Classification") html = "" html += "" string = "
#{image}
#{smiles}
" -- cgit v1.2.3