summaryrefslogtreecommitdiff
path: root/create_prediction_models.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-03-07 12:04:23 +0000
committergebele <gebele@in-silico.ch>2017-03-07 12:04:23 +0000
commit6bd7492c2cc0e7887e99f00ad5f9a8e8fd094392 (patch)
tree154266ca1f5dff52c4512daafcec52fbfe1ce790 /create_prediction_models.rb
parent61b98e011d4b32e88629d5a07d7b84a6abdded64 (diff)
updated scripts and readme
Diffstat (limited to 'create_prediction_models.rb')
-rw-r--r--create_prediction_models.rb19
1 files changed, 13 insertions, 6 deletions
diff --git a/create_prediction_models.rb b/create_prediction_models.rb
index c653f01..9c3995f 100644
--- a/create_prediction_models.rb
+++ b/create_prediction_models.rb
@@ -2,22 +2,24 @@ ENV["LAZAR_ENV"] = "production"
require_relative '../lazar/lib/lazar'
#require 'lazar'
include OpenTox
-$mongo.database.drop
-$gridfs = $mongo.database.fs # recreate GridFS indexes
+#$mongo.database.drop
+#$gridfs = $mongo.database.fs # recreate GridFS indexes
-#=begin
+=begin
# classification models
Dir["classification/*csv"].each do |file|
unless file.match(/hamster/)
Model::Validation.from_csv_file file
end
end
-#=end
+=end
#=begin
# regression models
Dir["regression/*log10.csv"].each do |file|
- Model::Validation.from_csv_file file
+ unless file.match(/fathead/)#until dublicates not cleared
+ Model::Validation.from_csv_file file
+ end
end
#=end
@@ -62,6 +64,11 @@ feature_categories.each do |category|
end
=end
-# save
+# save local dump but git ignored
`mongodump -h 127.0.0.1 -d production`
+
+# build reports and users dump
+eval File.read('./lazar_validation_reports.rb')
+
+# restore
#`mongorestore --host 127.0.0.1`