diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-06-21 14:44:41 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-06-21 14:44:41 +0200 |
commit | d9b997f0a0e3a45a72ff9e4a48035dacd75faacf (patch) | |
tree | af891aa5f3ca1a53597e30bfa0c636bfafd1674e /lazar.rb | |
parent | c1ee06638871ee7a88b07ebea05f4ecf3fab6392 (diff) |
Introduced switch 'balanced'
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -141,6 +141,7 @@ post '/lazar/?' do # AM: allow prediction_algorithm override by user for classification AND regression lazar.prediction_algorithm = "Neighbors.#{params[:prediction_algorithm]}" unless params[:prediction_algorithm].nil? lazar.prop_kernel = true if params[:local_svm_kernel] == "propositionalized" + lazar.balanced = true if params[:balanced] == "true" training_activities.data_entries.each do |compound,entry| lazar.activities[compound] = [] unless lazar.activities[compound] |