summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorist <ist@ist.opentox.org>2010-06-04 18:13:51 +0200
committerist <ist@ist.opentox.org>2010-06-04 18:13:51 +0200
commit19631128d1957b68e6f647f8c455bc1a8adfb53f (patch)
tree8b54e4753d6741c2832033bbb47f06d4c8df986a /lazar.rb
parentdd301a03d52e730e6985d4aad167a840875638f0 (diff)
parentcd0f661b7f5be60450014106f0b9aa3b4c18699e (diff)
Merge branch 'development' of git@github.com:amaunz/opentox-algorithm into development
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 6b0211d..cda56d7 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)