summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavor <vorgrimmlerdavid@gmx.de>2012-04-10 10:34:16 +0300
committerdavor <vorgrimmlerdavid@gmx.de>2012-04-10 10:34:16 +0300
commitd243f8e9bebff49899cd510e83be15abe8741cc8 (patch)
tree0793fc46b783003721f925fc2f60bac913798bfb
parentc2a5477758e7a5ce747019c0d784fdf566c3c52a (diff)
Bugfix. Escaping prediction feature title in rfe POST.
Prediction feature title has to be escaped to find it in further calculations (e.g. define y-column in R calculations).
-rw-r--r--feature_selection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/feature_selection.rb b/feature_selection.rb
index d375a0e..42dc1f7 100644
--- a/feature_selection.rb
+++ b/feature_selection.rb
@@ -59,7 +59,7 @@ post '/feature_selection/rfe/?' do
tf_ds.puts(ds_csv)
tf_ds.flush()
- prediction_feature = params[:prediction_feature_uri].split('/').last # get col name
+ prediction_feature = URI.escape(params[:prediction_feature_uri].split('/').last) # get col name
fds_csv=OpenTox::RestClientWrapper.get( params[:feature_dataset_uri], {:accept => "text/csv"})
tf_fds=Tempfile.open(['rfe_', '.csv'])