summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-02-07 15:14:49 +0000
committergebele <gebele@in-silico.ch>2017-02-07 15:14:49 +0000
commitb2814f75aa2e6b1a6822ae217c86c8f0d145748f (patch)
treed7e826d419e10d697acc9e7baa439b1ba15f651d
parentd8b69f89bf99a62aa15a2b828b63fe4ccfd8e9ad (diff)
adjusted paths
-rw-r--r--create_prediction_models.rb22
1 files changed, 14 insertions, 8 deletions
diff --git a/create_prediction_models.rb b/create_prediction_models.rb
index 0ec5e25..900bf0c 100644
--- a/create_prediction_models.rb
+++ b/create_prediction_models.rb
@@ -1,21 +1,23 @@
-ENV["LAZAR_ENV"] = "development"
+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
# classification models
Dir["classification/*csv"].each do |file|
- unless file.match(/hamster/)
- Model::Prediction.from_csv_file file
+ if file.match(/hamster/)
+ Model::Validation.from_csv_file file
end
end
+#=end
+=begin
# regression models
Dir["regression/*log10.csv"].each do |file|
- Model::Prediction.from_csv_file file
+ Model::Validation.from_csv_file file
end
=end
@@ -61,6 +63,10 @@ end
=end
# save
-
-#`mongodump -h 127.0.0.1 -d development`
+# local
+#`mongodump -h 127.0.0.1 -d production`
#`mongorestore --host 127.0.0.1`
+
+# to/from docker volume /dump
+#`sudo mongodump -h 127.0.0.1 -o /dump -d production`
+#`sudo mongorestore -h 127.0.0.1 /dump`