From d7504cc422bbaeee3546589d87e7baeb4e977c0b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 12 Jan 2017 17:57:03 +0100 Subject: source uris for core and coating --- test/validation-regression.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/validation-regression.rb') diff --git a/test/validation-regression.rb b/test/validation-regression.rb index 7630521..01ed644 100644 --- a/test/validation-regression.rb +++ b/test/validation-regression.rb @@ -83,10 +83,9 @@ class ValidationRegressionTest < MiniTest::Test model = Model::Lazar.create training_dataset: dataset repeated_cv = RepeatedCrossValidation.create model repeated_cv.crossvalidations.each do |cv| - #assert cv.r_squared > 0.34, "R^2 (#{cv.r_squared}) should be larger than 0.034" - #assert_operator cv.accuracy, :>, 0.7, "model accuracy < 0.7, this may happen by chance due to an unfavorable training/test set split" + assert cv.r_squared > 0.34, "R^2 (#{cv.r_squared}) should be larger than 0.034" + assert_operator cv.accuracy, :>, 0.7, "model accuracy < 0.7, this may happen by chance due to an unfavorable training/test set split" end - File.open("tmp.png","w+"){|f| f.puts repeated_cv.correlation_plot} end end -- cgit v1.2.3