summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorist <ist@ist.opentox.org>2010-06-02 18:22:06 +0200
committerist <ist@ist.opentox.org>2010-06-02 18:22:06 +0200
commitcd0f661b7f5be60450014106f0b9aa3b4c18699e (patch)
tree551f4547a00d8f38316a5813a946e0f493658c9a /lazar.rb
parent837500ae30d2157f531b6d52dc40a913920bfdd2 (diff)
Added debug statement to check for classification parameter
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/lazar.rb b/lazar.rb
index 64ba71d..ccaddd7 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -22,10 +22,17 @@ end
post '/lazar/?' do # create a model
- LOGGER.debug "Dataset: " + params[:dataset_uri].to_s
- LOGGER.debug "Endpoint: " + params[:prediction_feature].to_s
- LOGGER.debug "Feature generation: " + params[:feature_generation_uri].to_s
+ LOGGER.debug "Dataset: '" + params[:dataset_uri].to_s + "'"
+ LOGGER.debug "Endpoint: '" + params[:prediction_feature].to_s + "'"
+ LOGGER.debug "Feature generation: '" + params[:feature_generation_uri].to_s + "'"
dataset_uri = "#{params[:dataset_uri]}"
+
+
+ classification = true;
+ if (!params[:classification].nil?)
+ classification = params[:classification]
+ end
+ LOGGER.debug "Classification: '" + classification.to_s + "'"
begin
training_activities = OpenTox::Dataset.find(dataset_uri)