diff options
author | ist <ist@ist.opentox.org> | 2010-06-04 18:13:51 +0200 |
---|---|---|
committer | ist <ist@ist.opentox.org> | 2010-06-04 18:13:51 +0200 |
commit | 19631128d1957b68e6f647f8c455bc1a8adfb53f (patch) | |
tree | 8b54e4753d6741c2832033bbb47f06d4c8df986a /lazar.rb | |
parent | dd301a03d52e730e6985d4aad167a840875638f0 (diff) | |
parent | cd0f661b7f5be60450014106f0b9aa3b4c18699e (diff) |
Merge branch 'development' of git@github.com:amaunz/opentox-algorithm into development
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) |