diff options
author | ist <ist@ist.opentox.org> | 2010-06-02 18:22:06 +0200 |
---|---|---|
committer | ist <ist@ist.opentox.org> | 2010-06-02 18:22:06 +0200 |
commit | cd0f661b7f5be60450014106f0b9aa3b4c18699e (patch) | |
tree | 551f4547a00d8f38316a5813a946e0f493658c9a /lazar.rb | |
parent | 837500ae30d2157f531b6d52dc40a913920bfdd2 (diff) |
Added debug statement to check for classification parameter
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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) |