summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-02-23 16:07:26 +0100
committerAndreas Maunz <andreas@maunz.de>2012-02-23 16:07:26 +0100
commite7787778a9c307e8ca2400d7d296a9f7880b41ab (patch)
tree1a998dc7fc02012ae5bc21f58828117f58a9baed /lazar.rb
parentff0798375a0a694296919715a09a80578df1d427 (diff)
Adjusted tests to jl
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lazar.rb b/lazar.rb
index 4a77a82..bf2baf0 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -65,9 +65,9 @@ class LazarTest < Test::Unit::TestCase
def test_create_regression_svm_pc_model
create_model :dataset_uri => @@regression_training_dataset.uri, :feature_dataset_uri => @@regression_feature_dataset.uri, :pc_type => "constitutional"
predict_compound OpenTox::Compound.from_smiles("c1ccccc1NN")
- assert_in_delta @predictions.first.value(@compounds.first), 7.8, 0.1
- assert_equal 0.603, @predictions.first.confidence(@compounds.first).round_to(3)
- assert_equal 74, @predictions.first.neighbors(@compounds.first).size
+ assert_in_delta @predictions.first.value(@compounds.first), 12.81, 0.1
+ assert_equal 0.531, @predictions.first.confidence(@compounds.first).round_to(3)
+ assert_equal 91, @predictions.first.neighbors(@compounds.first).size
cleanup
end