summaryrefslogtreecommitdiff
path: root/test/nanoparticles.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2016-04-12 12:37:37 +0200
committerChristoph Helma <helma@in-silico.ch>2016-04-12 12:37:37 +0200
commit84222bae2bbb9fb3e0ce3e65de1be8e7f94d2147 (patch)
tree3e041cfe44dd0bb97b261a7f10e7e44bc2dca080 /test/nanoparticles.rb
parent515e644423998a94f07be06bf6460bcf4f96f968 (diff)
new dataset structure
Diffstat (limited to 'test/nanoparticles.rb')
-rw-r--r--test/nanoparticles.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/nanoparticles.rb b/test/nanoparticles.rb
index 4fc04ff..8a6836c 100644
--- a/test/nanoparticles.rb
+++ b/test/nanoparticles.rb
@@ -2,11 +2,16 @@ require_relative "setup.rb"
class NanoparticleTest < MiniTest::Test
- MODENA = File.join DATA_DIR,"MODENA-EC50_EC25.csv"
-
def test_import
Import::Enanomapper.import
assert_operator Nanoparticle.count , :>, 570, "Only #{Nanoparticle.count} nanoparticles imported"
end
+ def test_create_model
+ Model::NanoLazar.create_all.each do |model|
+ np = Nanoparticle.find(model.training_particle_ids.sample)
+ model.predict np
+ end
+ end
+
end