diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-01 15:27:00 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-01 15:27:00 +0200 |
commit | 0a58b2de8bdcbe3bcc598b3ffccdcd077709080e (patch) | |
tree | d2090d465aac8d703a295e2f370718412ad27c04 /lazar.rb | |
parent | fe6a64a503507d905a61505958e795b2bca251b1 (diff) |
Updated tests according to fminer regression value conversion.
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -65,18 +65,18 @@ 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.423.round_to(3), @predictions.first.value(@compounds.first).round_to(3) - assert_equal 0.263.round_to(3), @predictions.first.confidence(@compounds.first).round_to(3) - assert_equal 121, @predictions.first.neighbors(@compounds.first).size + assert_equal 0.421.round_to(3), @predictions.first.value(@compounds.first).round_to(3) + 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 end def test_create_regression_prop_model create_model :dataset_uri => @@regression_training_dataset.uri, :local_svm_kernel => "propositionalized" predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN") - assert_equal 0.263.round_to(3), @predictions.first.confidence(@compounds.first).round_to(3) - assert_equal 121, @predictions.first.neighbors(@compounds.first).size - assert_equal 132, @model.features.size + 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 cleanup end |