summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-12-12 13:02:29 +0100
committerChristoph Helma <helma@in-silico.ch>2016-12-12 13:02:29 +0100
commit0813b486bc6b107a6970bae7cfb4ca262d7c5697 (patch)
tree864d5e91b761f2be496637f14a7bec7047fb73fd /lib/model.rb
parent8e4cd2f6654de5b88cdad91eb0c5050be13222f1 (diff)
5 repeated cvs for enm
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 5a1c191..9c4a93f 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -395,7 +395,7 @@ module OpenTox
# find/import training_dataset
training_dataset ||= Dataset.where(:name => "Protein Corona Fingerprinting Predicts the Cellular Interaction of Gold and Silver Nanoparticles").first
- unless training_dataset # try to import from json dump
+ unless training_dataset # try to import
Import::Enanomapper.import
training_dataset = Dataset.where(name: "Protein Corona Fingerprinting Predicts the Cellular Interaction of Gold and Silver Nanoparticles").first
bad_request_error "Cannot import 'Protein Corona Fingerprinting Predicts the Cellular Interaction of Gold and Silver Nanoparticles' dataset" unless training_dataset
@@ -410,7 +410,7 @@ module OpenTox
)
model = LazarRegression.create prediction_feature: prediction_feature, training_dataset: training_dataset, algorithms: algorithms
model_validation[:model_id] = model.id
- repeated_cv = OpenTox::Validation::RepeatedCrossValidation.create model
+ repeated_cv = OpenTox::Validation::RepeatedCrossValidation.create model, 10, 5
model_validation[:repeated_crossvalidation_id] = repeated_cv.id
model_validation.save
model_validation