summaryrefslogtreecommitdiff
path: root/test/nanoparticles.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/nanoparticles.rb')
-rw-r--r--test/nanoparticles.rb13
1 files changed, 4 insertions, 9 deletions
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