summaryrefslogtreecommitdiff
path: root/report/report_test.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-01-07 09:35:17 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-01-07 09:35:17 +0100
commit15f49fc9862fa995612c7960becc2ce98f2bd1c4 (patch)
treeba90be782f56d9a8982409a6160199ab50c7226f /report/report_test.rb
parente4379c9757cc5376c63dffb8be94d0c427cef77a (diff)
* replace load with require (to avoid loading resources twice)
* adjust to new api * move validation constants from wrapper to lib in validation * accept header parsing in validation * rdf-support in validation
Diffstat (limited to 'report/report_test.rb')
-rw-r--r--report/report_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/report/report_test.rb b/report/report_test.rb
index 1a4a5f5..6ac8810 100644
--- a/report/report_test.rb
+++ b/report/report_test.rb
@@ -5,7 +5,7 @@ require 'report/report_application.rb'
require 'test/unit'
require 'rack/test'
-load 'lib/test_util.rb'
+require "'lib/test_util.rb"
#class Reports::ApplicationTest < Test::Unit::TestCase
@@ -151,7 +151,7 @@ class Reports::ReportServiceTest < Test::Unit::TestCase
:algorithm_uri => ws_class_alg,
:split_ratio=>0.7,
:prediction_feature => "classification",}
- val_params[:feature_service_uri] = ws_feat_alg if ws_feat_alg
+ val_params[:feature_generation_uri] = ws_feat_alg if ws_feat_alg
begin
RestClient.post WS_VAL+"/validation/training_test_split", val_params
rescue => ex
@@ -162,7 +162,7 @@ class Reports::ReportServiceTest < Test::Unit::TestCase
def create_cross_validation(data_uri, ws_class_alg=WS_CLASS_ALG, ws_feat_alg=WS_FEATURE_ALG)
puts "cross-validating"
ext("curl -X POST -d num_folds=3 -d dataset_uri="+data_uri+" -d algorithm_uri="+ws_class_alg+" -d prediction_feature=classification"+
- (ws_feat_alg ? " -d feature_service_uri="+ws_feat_alg : "")+
+ (ws_feat_alg ? " -d feature_generation_uri="+ws_feat_alg : "")+
" "+WS_VAL+"/crossvalidation",nil)
end