From 4024dd30788865f019b2d2d2ed705a4945e8c52e Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 26 May 2011 12:07:33 +0200 Subject: fix error for stratified regression cv --- validation/validation_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'validation') diff --git a/validation/validation_service.rb b/validation/validation_service.rb index 6954a33..d135a2c 100755 --- a/validation/validation_service.rb +++ b/validation/validation_service.rb @@ -393,7 +393,7 @@ module Validation else class_compounds = {} # "inactive" => compounds[], "active" => compounds[] .. accept_values = orig_dataset.accept_values(prediction_feature) - raise BadRequestError.new("cannot apply stratification (not implemented for regression), acceptValue missing for prediction-feature '"+ + raise OpenTox::BadRequestError.new("cannot apply stratification (not implemented for regression), acceptValue missing for prediction-feature '"+ prediction_feature.to_s+"' in dataset '"+dataset_uri.to_s+"'") unless accept_values and accept_values.size>0 accept_values.each do |value| class_compounds[value] = [] -- cgit v1.2.3