summaryrefslogtreecommitdiff
path: root/test/validation-nanoparticle.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-11-11 17:19:13 +0100
committerChristoph Helma <helma@in-silico.ch>2016-11-11 17:19:13 +0100
commit99c42f76b02f9084d0757eb0c52b4a55fa295a95 (patch)
treecc878fc809858e7acd03c5d1ec5504ee0331ed05 /test/validation-nanoparticle.rb
parentb6116bc4705066da30668ff3370f3b1c307e44e7 (diff)
p-chem regression and enm import fixed
Diffstat (limited to 'test/validation-nanoparticle.rb')
-rw-r--r--test/validation-nanoparticle.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/validation-nanoparticle.rb b/test/validation-nanoparticle.rb
index 9351e1b..85392a1 100644
--- a/test/validation-nanoparticle.rb
+++ b/test/validation-nanoparticle.rb
@@ -11,7 +11,8 @@ class NanoparticleValidationTest < MiniTest::Test
def test_validate_default_nanoparticle_model
model = Model::Lazar.create training_dataset: @training_dataset, prediction_feature: @prediction_feature
cv = CrossValidation.create model
- #File.open("tmp.pdf","w+"){|f| f.puts cv.correlation_plot}
+ p cv.id
+ File.open("tmp.pdf","w+"){|f| f.puts cv.correlation_plot format:"pdf"}
refute_nil cv.r_squared
refute_nil cv.rmse
end
@@ -30,6 +31,8 @@ class NanoparticleValidationTest < MiniTest::Test
model = Model::Lazar.create prediction_feature: @prediction_feature, training_dataset: @training_dataset, algorithms: algorithms
assert_equal "Algorithm::Caret.pls", model.algorithms[:prediction][:method]
cv = CrossValidation.create model
+ p cv.id
+ File.open("tmp2.pdf","w+"){|f| f.puts cv.correlation_plot format:"pdf"}
refute_nil cv.r_squared
refute_nil cv.rmse
end