summaryrefslogtreecommitdiff
path: root/lib/lazar.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-09-16 13:11:45 +0200
committerChristoph Helma <helma@in-silico.ch>2015-09-16 13:11:45 +0200
commitd3a4c309d48b794f2f60f44bb9a3d94f402cc82f (patch)
treebd720c3f23fc7824980b82cf6dceb7dfde8e5647 /lib/lazar.rb
parent33c2404882cbed78c1c5d9d0b60e0da4594a7fc5 (diff)
repeated crossvalidations, improved experiment reports
Diffstat (limited to 'lib/lazar.rb')
-rw-r--r--lib/lazar.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lazar.rb b/lib/lazar.rb
index decbe69..9b02053 100644
--- a/lib/lazar.rb
+++ b/lib/lazar.rb
@@ -15,7 +15,8 @@ ENV["MONGOID_ENV"] ||= "development"
# TODO remove config files, change default via ENV or directly in Mongoid class
Mongoid.load!("#{File.expand_path(File.join(File.dirname(__FILE__),'..','mongoid.yml'))}")
Mongoid.raise_not_found_error = false # return nil if no document is found
-$mongo = Mongoid.default_client
+$mongo = Mongo::Client.new('mongodb://127.0.0.1:27017/opentox')
+#$mongo = Mongoid.default_client
$gridfs = $mongo.database.fs
# R setup
@@ -42,7 +43,7 @@ ENV['FMINER_SILENT'] = 'true'
ENV['FMINER_NR_HITS'] = 'true'
# OpenTox classes and includes
-CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","Experiment"]# Algorithm and Models are modules
+CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","RepeatedCrossValidation","Experiment"]# Algorithm and Models are modules
[ # be aware of the require sequence as it affects class/method overwrites
"overwrite.rb",