diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-01-20 17:19:18 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-01-20 17:19:18 +0100 |
commit | ff279abf4d148b2708a7e2e1b7ee3df5b4387763 (patch) | |
tree | b7555ea953349056b4464ee090574b85b922021c | |
parent | 10d5ece8b46abf72ab9c475d08c1d238f4079e39 (diff) |
Add new parameter, min_train_performance, which controls censoring in
local_svm and local_svm_prop
-rw-r--r-- | lazar.rb | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -117,6 +117,10 @@ post '/lazar/?' do # PC type pc_type = params[:pc_type] unless params[:pc_type].nil? + # Min train performance + min_train_performance = params[:min_train_performance].to_f if params[:min_train_performance] + min_train_performance = 0.1 unless params[:min_train_performance] + # Conf_stdev --- To be removed?? lazar.conf_stdev = ( (params[:conf_stdev] == "true") ? true : false ) @@ -249,7 +253,9 @@ post '/lazar/?' do {DC.title => "propositionalized", OT.paramValue => propositionalized}, {DC.title => "pc_type", OT.paramValue => pc_type}, {DC.title => "nr_hits", OT.paramValue => nr_hits}, - {DC.title => "min_sim", OT.paramValue => min_sim} + {DC.title => "min_sim", OT.paramValue => min_sim}, + {DC.title => "min_train_performance", OT.paramValue => min_train_performance}, + ] model_uri = lazar.save(@subjectid) |