summaryrefslogtreecommitdiff
path: root/example.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-04-14 11:33:44 +0200
committerMartin Gütlein <martin.guetlein@gmail.com>2010-04-14 11:33:44 +0200
commita35e4d1540b74d6687529b43c1c6e5b85deb680e (patch)
tree17e4a91fedc7b7e43eeedd5fc7e6911358ee515c /example.rb
parentb3e888fea0c750ca2c10c5b12bcc12c877aa1813 (diff)
removing class feature in test-datsets, introduced test_class_dataset
Diffstat (limited to 'example.rb')
-rw-r--r--example.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/example.rb b/example.rb
index a9eb1e6..d5ee251 100644
--- a/example.rb
+++ b/example.rb
@@ -63,9 +63,10 @@ class Example
#delete_all(@@config[:services]["opentox-model"])
OpenTox::RestClientWrapper.delete @@config[:services]["opentox-model"]
- split_params = Validation::Util.train_test_dataset_split(data_uri, 0.9, 1)
+ split_params = Validation::Util.train_test_dataset_split(data_uri, URI.decode(@@feature), 0.9, 1)
v = Validation::Validation.new :training_dataset_uri => split_params[:training_dataset_uri],
:test_dataset_uri => split_params[:test_dataset_uri],
+ :test_class_dataset_uri => data_uri,
:prediction_feature => URI.decode(@@feature),
:algorithm_uri => @@alg
v.validate_algorithm( @@alg_params )