diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-26 12:07:33 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-26 12:07:33 +0200 |
commit | 4024dd30788865f019b2d2d2ed705a4945e8c52e (patch) | |
tree | 837d29b7938f3d6b2046c2a65b4ec8e4b11eb0a7 | |
parent | 8b8d7bc91ee841461620269f5892da72a0b114f6 (diff) |
fix error for stratified regression cv
-rwxr-xr-x | validation/validation_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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] = [] |