summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2016-09-14 14:29:28 +0200
committerrautenberg <rautenberg@in-silico.ch>2016-09-14 14:29:28 +0200
commit8e95b8a63c3a5ce8b8cafb64233e77e21d57bbef (patch)
treecc0d5baf36c1c842a6f135a0769b901f7849a994
parenta4e50a68761b5edc885fe1855b5022a3724f1698 (diff)
add section 6.5-6'
-rw-r--r--lib/report.rb6
1 files changed, 6 insertions, 0 deletions
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