diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-01-13 12:31:37 +0100 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-01-13 12:31:37 +0100 |
commit | 62a1d95d64ebe981f29261856a9a599774c0dbd2 (patch) | |
tree | 36017662d162370ea06873fd2a7be39edef17bb8 | |
parent | d5e8598ae8143737c7b6efeb8f68292cfc808de3 (diff) |
Adjusted tests to fingerprint fix
see https://github.com/opentox/algorithm/commit/eff86c3f6c7e99a19edf1e38dee577a9e9080bf7
-rw-r--r-- | lazar.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |