diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-14 10:50:38 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-14 10:50:38 +0200 |
commit | 0da3b10c755384b81a45142631b8ac65acfecfaf (patch) | |
tree | fcb27bdec068e2ea233b9b8a3888b89d66558d3d /lazar.rb | |
parent | e2137202d522e9a167b1418228dbe24dd0f181b7 (diff) | |
parent | 9f9e3e699c46dc26cf0048088dcc85ccb9b68412 (diff) |
Merge branch 'development' into loglog
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -72,7 +72,7 @@ post '/lazar/?' do elsif prediction_feature.feature_type == "regression" lazar.prediction_algorithm = "Neighbors.local_svm_regression" end - + task.progress 10 if params[:feature_dataset_uri] feature_dataset_uri = params[:feature_dataset_uri] @@ -95,7 +95,7 @@ post '/lazar/?' do if prediction_feature.feature_type == "regression" && feature_generation_uri.match(/fminer/) params[:feature_type] = "paths" end - feature_dataset_uri = OpenTox::Algorithm::Generic.new(feature_generation_uri).run(params).to_s + feature_dataset_uri = OpenTox::Algorithm::Generic.new(feature_generation_uri).run(params, OpenTox::SubTask.new(task,10,70)).to_s training_features = OpenTox::Dataset.new(feature_dataset_uri) end @@ -140,6 +140,7 @@ post '/lazar/?' do end end end + task.progress 80 # AM: allow settings override by user lazar.prediction_algorithm = "Neighbors.#{params[:prediction_algorithm]}" unless params[:prediction_algorithm].nil? @@ -180,6 +181,7 @@ post '/lazar/?' do end end end + task.progress 90 lazar.metadata[DC.title] = "lazar model for #{URI.decode(File.basename(prediction_feature.uri))}" lazar.metadata[OT.dependentVariables] = prediction_feature.uri |