From 8aab046eb1ad39aaf10c5a8596102c35c7b2ee0b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 15 Apr 2016 11:01:16 +0200 Subject: data_entries removed from datasets. datasets are now just containers for compounds and features, feature values have to be retrieved from substances. --- test/prediction_models.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'test/prediction_models.rb') diff --git a/test/prediction_models.rb b/test/prediction_models.rb index a2e5fe2..49a2472 100644 --- a/test/prediction_models.rb +++ b/test/prediction_models.rb @@ -10,7 +10,6 @@ class PredictionModelTest < MiniTest::Test assert pm.classification? refute pm.regression? pm.crossvalidations.each do |cv| - p cv assert cv.accuracy > 0.74, "Crossvalidation accuracy (#{cv.accuracy}) should be larger than 0.75. This may happen due to an unfavorable training/test set split." end prediction = pm.predict Compound.from_smiles("CCCC(NN)C") -- cgit v1.2.3 From 99c42f76b02f9084d0757eb0c52b4a55fa295a95 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 11 Nov 2016 17:19:13 +0100 Subject: p-chem regression and enm import fixed --- test/prediction_models.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 test/prediction_models.rb (limited to 'test/prediction_models.rb') diff --git a/test/prediction_models.rb b/test/prediction_models.rb deleted file mode 100644 index 49a2472..0000000 --- a/test/prediction_models.rb +++ /dev/null @@ -1,19 +0,0 @@ -require_relative "setup.rb" - -class PredictionModelTest < MiniTest::Test - - def test_prediction_model - pm = Model::Prediction.from_csv_file "#{DATA_DIR}/hamster_carcinogenicity.csv" - [:endpoint,:species,:source].each do |p| - refute_empty pm[p] - end - assert pm.classification? - refute pm.regression? - pm.crossvalidations.each do |cv| - assert cv.accuracy > 0.74, "Crossvalidation accuracy (#{cv.accuracy}) should be larger than 0.75. This may happen due to an unfavorable training/test set split." - end - prediction = pm.predict Compound.from_smiles("CCCC(NN)C") - assert_equal "true", prediction[:value] - pm.delete - end -end -- cgit v1.2.3