From ad7ec6a1e33f69557fe64371581d5f42a65ecaa8 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 13 Oct 2016 17:34:31 +0200 Subject: classification fixed --- test/nanoparticles.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'test/nanoparticles.rb') diff --git a/test/nanoparticles.rb b/test/nanoparticles.rb index c489cb7..9a67e63 100644 --- a/test/nanoparticles.rb +++ b/test/nanoparticles.rb @@ -1,6 +1,5 @@ require_relative "setup.rb" - class NanoparticleTest < MiniTest::Test include OpenTox::Validation @@ -13,7 +12,7 @@ class NanoparticleTest < MiniTest::Test @prediction_feature = @training_dataset.features.select{|f| f["name"] == 'log2(Net cell association)'}.first end - def test_create_model + def test_nanoparticle_model model = Model::Lazar.create training_dataset: @training_dataset, prediction_feature: @prediction_feature nanoparticle = @training_dataset.nanoparticles[-34] prediction = model.predict nanoparticle @@ -23,6 +22,8 @@ class NanoparticleTest < MiniTest::Test model.delete end + # validations + def test_validate_default_nanoparticle_model model = Model::Lazar.create training_dataset: @training_dataset, prediction_feature: @prediction_feature cv = CrossValidation.create model @@ -77,15 +78,9 @@ class NanoparticleTest < MiniTest::Test refute_nil cv.rmse end - def test_export - skip - Dataset.all.each do |d| - puts d.to_csv - end - end def test_import_ld - skip + skip # Ambit JSON-LD export defunct dataset_ids = Import::Enanomapper.import_ld end end -- cgit v1.2.3