From 62a1d95d64ebe981f29261856a9a599774c0dbd2 Mon Sep 17 00:00:00 2001 From: davor Date: Fri, 13 Jan 2012 12:31:37 +0100 Subject: Adjusted tests to fingerprint fix see https://github.com/opentox/algorithm/commit/eff86c3f6c7e99a19edf1e38dee577a9e9080bf7 --- lazar.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lazar.rb b/lazar.rb index 210433f..4dede79 100644 --- a/lazar.rb +++ b/lazar.rb @@ -83,7 +83,7 @@ class LazarTest < Test::Unit::TestCase create_model :dataset_uri => @@regression_training_dataset.uri predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") assert_in_delta @predictions.first.value(@compounds.first), 0.43, 0.2 - assert_equal 0.610, @predictions.first.confidence(@compounds.first).round_to(3) + assert_equal 0.61, @predictions.first.confidence(@compounds.first).round_to(2) assert_equal 253, @predictions.first.neighbors(@compounds.first).size cleanup end @@ -91,18 +91,18 @@ class LazarTest < Test::Unit::TestCase def test_create_regression_prop_model create_model :dataset_uri => @@regression_training_dataset.uri, :propositionalized => "true" predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_equal 0.610, @predictions.first.confidence(@compounds.first).round_to(3) + assert_equal 0.61, @predictions.first.confidence(@compounds.first).round_to(2) assert_equal 253, @predictions.first.neighbors(@compounds.first).size - assert_equal 131, @model.features.size + assert_equal 132, @model.features.size cleanup end def test_create_regression_prop_nr_hits_model create_model :dataset_uri => @@regression_training_dataset.uri, :propositionalized => "true", :nr_hits => "false" predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_equal 0.610, @predictions.first.confidence(@compounds.first).round_to(3) + assert_equal 0.61, @predictions.first.confidence(@compounds.first).round_to(2) assert_equal 253, @predictions.first.neighbors(@compounds.first).size - assert_equal 131, @model.features.size + assert_equal 132, @model.features.size cleanup end -- cgit v1.2.3