diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-06 14:55:47 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-06 14:55:47 +0200 |
commit | e4ba76a3dab8bf9fc099524588ecc6f99c5e5e50 (patch) | |
tree | df5c5b0163b8cfea8f6c405a85307abe4b16b1e6 /lazar.rb | |
parent | e89f8b15f6125c91e847c11c7c257285a6d3e1d4 (diff) |
Fixed lazar test according to MR's hints
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -65,7 +65,7 @@ class LazarTest < Test::Unit::TestCase def test_create_regression_model create_model :dataset_uri => @@regression_training_dataset.uri predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_equal 0.421.round_to(3), @predictions.first.value(@compounds.first).round_to(3) + assert_equal 0.421.round_to(2), @predictions.first.value(@compounds.first).round_to(2) assert_equal 0.262.round_to(3), @predictions.first.confidence(@compounds.first).round_to(3) assert_equal 123, @predictions.first.neighbors(@compounds.first).size cleanup @@ -80,16 +80,6 @@ class LazarTest < Test::Unit::TestCase cleanup end - def test_create_regression_prop_mlr_model - create_model :dataset_uri => @@regression_training_dataset.uri, :prediction_algorithm => "local_mlr_prop" - predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_equal 0.262.round_to(3), @predictions.first.confidence(@compounds.first).round_to(3) - assert_equal 123, @predictions.first.neighbors(@compounds.first).size - assert_equal 131, @model.features.size - assert_equal 0.374.round_to(3), @predictions.first.value(@compounds.first).round_to(3) - cleanup - end - def test_classification_model create_model :dataset_uri => @@classification_training_dataset.uri puts @model.uri |