summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-05-26 23:08:41 +0200
committerChristoph Helma <helma@in-silico.ch>2011-05-26 23:08:41 +0200
commitdd52bf371136322b9effb0640f6bc6538b8ba10c (patch)
tree25d9cfce92b3cf8f09eed7915f37f822488b533e
parente26abb0026c611a75da6a0484003d50c1961804f (diff)
regression tests adjusted
-rw-r--r--lazar.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lazar.rb b/lazar.rb
index 59ec9ca..a8b8de9 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -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