summaryrefslogtreecommitdiff
path: root/test/model-validation.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2019-08-24 15:06:53 +0200
committerChristoph Helma <helma@in-silico.ch>2019-08-24 15:06:53 +0200
commit8e1e8b94539dbdd74bd4ac28295cbfd1b84036ab (patch)
tree28528e19dc6ed4cca7ed824e939dedd6c4acc94c /test/model-validation.rb
parent1ee7de09c969e16fd11522d22179224e694b0161 (diff)
parent488ce9fe6d4b715680675861105b8c52a7535140 (diff)
Merge remote-tracking branch 'origin/development'
Diffstat (limited to 'test/model-validation.rb')
-rw-r--r--test/model-validation.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/model-validation.rb b/test/model-validation.rb
deleted file mode 100644
index 9304232..0000000
--- a/test/model-validation.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-require_relative "setup.rb"
-
-class ValidationModelTest < MiniTest::Test
-
- def test_validation_model
- m = Model::Validation.from_csv_file "#{DATA_DIR}/hamster_carcinogenicity.csv"
- [:endpoint,:species,:source].each do |p|
- refute_empty m[p]
- end
- assert m.classification?
- refute m.regression?
- m.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 = m.predict Compound.from_smiles("OCC(CN(CC(O)C)N=O)O")
- assert_equal "true", prediction[:value]
- m.delete
- end
-end