summaryrefslogtreecommitdiff
path: root/feature_selection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'feature_selection.rb')
-rw-r--r--feature_selection.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/feature_selection.rb b/feature_selection.rb
index c5bc4fa..efda812 100644
--- a/feature_selection.rb
+++ b/feature_selection.rb
@@ -71,11 +71,9 @@ post '/feature_selection/rfe/?' do
task = OpenTox::Task.create("Recursive Feature Elimination", url_for('/feature_selection',:full)) do |task|
r_result_file = OpenTox::Algorithm::FeatureSelection.rfe( { :ds_csv_file => tf_ds.path, :prediction_feature => prediction_feature, :fds_csv_file => tf_fds.path, :del_missing => del_missing } )
r_result_uri = OpenTox::Dataset.create_from_csv_file(r_result_file).uri
- tf_ds.close!
- tf_fds.close!
+ tf_ds.close!; tf_fds.close!
+ tf_ds.delete; tf_fds.delete
File.unlink(r_result_file)
- File.unlink(tf_ds.path)
- File.unlink(tf_fds.path)
r_result_uri
end
response['Content-Type'] = 'text/uri-list'