From d243f8e9bebff49899cd510e83be15abe8741cc8 Mon Sep 17 00:00:00 2001 From: davor Date: Tue, 10 Apr 2012 10:34:16 +0300 Subject: 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). --- feature_selection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit v1.2.3