diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-26 23:08:41 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-26 23:08:41 +0200 |
commit | dd52bf371136322b9effb0640f6bc6538b8ba10c (patch) | |
tree | 25d9cfce92b3cf8f09eed7915f37f822488b533e /lazar.rb | |
parent | e26abb0026c611a75da6a0484003d50c1961804f (diff) |
regression tests adjusted
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -29,16 +29,16 @@ class LazarTest < Test::Unit::TestCase validate_owl model_uri,@@subjectid lazar = OpenTox::Model::Lazar.find model_uri, @@subjectid @models << lazar - assert_equal 185, lazar.features.size + assert_equal 219, lazar.features.size compound = OpenTox::Compound.from_smiles("c1ccccc1NN") prediction_uri = lazar.run(:compound_uri => compound.uri, :subjectid => @@subjectid).to_s prediction = OpenTox::LazarPrediction.find(prediction_uri, @@subjectid) @predictions << prediction - assert_equal prediction.value(compound).round_to(3),0.2849.round_to(3) - assert_equal prediction.confidence(compound).round_to(3), 0.3223.round_to(3) + assert_equal prediction.value(compound).round_to(3),0.378.round_to(3) + assert_equal prediction.confidence(compound).round_to(3), 0.276.round_to(3) #assert_equal prediction.value(compound).round_to(4), 0.2847.round_to(4) #assert_equal prediction.confidence(compound).round_to(4), 0.3223.round_to(4) - assert_equal prediction.neighbors(compound).size, 73 + assert_equal prediction.neighbors(compound).size, 61 end def test_classification_model |