summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-01-17 10:09:29 +0100
committerAndreas Maunz <andreas@maunz.de>2012-01-17 10:09:29 +0100
commit2df4866db38f64844166e4eaddf956ff59ca46f7 (patch)
tree510690c8f4476e435f9a2580dfb4bb28bd763e6f
parenta7a96be15208b75d1b74497e8c1afbe0e8cced30 (diff)
Adjusted tests for commit 4aafc9b30
-rw-r--r--lazar.rb18
1 files 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