lib/lazar.rb in lazar-0.9.3 vs lib/lazar.rb in lazar-1.0.0
- old
+ new
@@ -46,39 +46,49 @@
# http://stackoverflow.com/questions/19619582/number-of-processors-cores-in-command-line
NR_CORES = `getconf _NPROCESSORS_ONLN`.to_i
R = Rserve::Connection.new
R.eval "
suppressPackageStartupMessages({
+ library(labeling,lib=\"#{rlib}\")
library(iterators,lib=\"#{rlib}\")
library(foreach,lib=\"#{rlib}\")
library(ggplot2,lib=\"#{rlib}\")
library(grid,lib=\"#{rlib}\")
library(gridExtra,lib=\"#{rlib}\")
library(pls,lib=\"#{rlib}\")
library(caret,lib=\"#{rlib}\")
library(doMC,lib=\"#{rlib}\")
+ library(randomForest,lib=\"#{rlib}\")
+ library(plyr,lib=\"#{rlib}\")
registerDoMC(#{NR_CORES})
})
"
# OpenTox classes and includes
-CLASSES = ["Feature","Compound","Dataset","Validation","CrossValidation","LeaveOneOutValidation","RepeatedCrossValidation","Experiment"]# Algorithm and Models are modules
+CLASSES = ["Feature","Substance","Dataset","LazarPrediction","CrossValidation","LeaveOneOutValidation","RepeatedCrossValidation","Experiment"]# Algorithm and Models are modules
[ # be aware of the require sequence as it affects class/method overwrites
"overwrite.rb",
"rest-client-wrapper.rb",
"error.rb",
"opentox.rb",
"feature.rb",
"physchem.rb",
+ "substance.rb",
"compound.rb",
+ "nanoparticle.rb",
"dataset.rb",
"algorithm.rb",
+ "similarity.rb",
+ "feature_selection.rb",
"model.rb",
"classification.rb",
"regression.rb",
+ "caret.rb",
+ "validation-statistics.rb",
"validation.rb",
- "crossvalidation.rb",
+ "train-test-validation.rb",
"leave-one-out-validation.rb",
- "experiment.rb",
+ "crossvalidation.rb",
+ #"experiment.rb",
+ "import.rb",
].each{ |f| require_relative f }
-OpenTox::PhysChem.descriptors # load descriptor features