From 8e95b8a63c3a5ce8b8cafb64233e77e21d57bbef Mon Sep 17 00:00:00 2001 From: rautenberg Date: Wed, 14 Sep 2016 14:29:28 +0200 Subject: add section 6.5-6' --- lib/report.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/report.rb b/lib/report.rb index eb77446..2cf6b83 100644 --- a/lib/report.rb +++ b/lib/report.rb @@ -140,6 +140,12 @@ get "/report/:id/?" do # Data for the dependent variable for the training set 6.4 report.change_attributes "dependent_var_availability", {:answer => "All"} + # Other information about the training set 6.5 + report.value "other_info", "#{model.source}" + + # Pre-processing of data before modelling 6.6 + report.value "preprocessing", (model.class == OpennTox::Model::LazarRegression ? "-Log 10 transformation" : "none") + # output response['Content-Type'] = "application/xml" return report.to_xml -- cgit v1.2.3