From 2df4866db38f64844166e4eaddf956ff59ca46f7 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 17 Jan 2012 10:09:29 +0100 Subject: Adjusted tests for commit 4aafc9b30 --- lazar.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lazar.rb b/lazar.rb index d401caf..a4c6428 100644 --- a/lazar.rb +++ b/lazar.rb @@ -72,7 +72,7 @@ class LazarTest < Test::Unit::TestCase def test_create_regression_pc_prop_model create_model :dataset_uri => @@regression_training_dataset.uri, :feature_dataset_uri => @@regression_feature_dataset.uri, :pc_type => "constitutional", :propositionalized => "true" predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_in_delta @predictions.first.value(@compounds.first), 1.90, 0.5 + assert_in_delta @predictions.first.value(@compounds.first), 0.71, 0.5 assert_equal 0.603, @predictions.first.confidence(@compounds.first).round_to(3) assert_equal 74, @predictions.first.neighbors(@compounds.first).size cleanup @@ -99,14 +99,14 @@ class LazarTest < Test::Unit::TestCase 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.61, @predictions.first.confidence(@compounds.first).round_to(2) - assert_equal 253, @predictions.first.neighbors(@compounds.first).size - assert_equal 131, @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.61, @predictions.first.confidence(@compounds.first).round_to(2) +# assert_equal 253, @predictions.first.neighbors(@compounds.first).size +# assert_equal 131, @model.features.size +# cleanup +# end def test_classification_model -- cgit v1.2.3