diff options
author | Christoph Helma <helma@in-silico.ch> | 2016-04-12 12:37:37 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2016-04-12 12:37:37 +0200 |
commit | 84222bae2bbb9fb3e0ce3e65de1be8e7f94d2147 (patch) | |
tree | 3e041cfe44dd0bb97b261a7f10e7e44bc2dca080 /test/nanoparticles.rb | |
parent | 515e644423998a94f07be06bf6460bcf4f96f968 (diff) |
new dataset structure
Diffstat (limited to 'test/nanoparticles.rb')
-rw-r--r-- | test/nanoparticles.rb | 9 |
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 |