diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-04 13:00:26 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-04 13:00:26 +0200 |
commit | 84a08182ce116ebb874e97d367cc724126e2c163 (patch) | |
tree | 346f57bddaf099fe0ccfba0ede8c8722fdf4d7c0 | |
parent | ab8d03b9d9904aeb19e461a5d9bbaf03ae43bf2e (diff) |
Fixed bug: Copy/Paste error (line 266), params[:min_chisq_significance] to_f
-rw-r--r-- | fminer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,7 +88,7 @@ post '/fminer/bbrc/?' do @@bbrc.SetMinfreq(minfreq) @@bbrc.SetType(1) if params[:feature_type] == "paths" @@bbrc.SetBackbone(eval params[:backbone]) if params[:backbone] and ( params[:backbone] == "true" or params[:backbone] == "false" ) # convert string to boolean - @@bbrc.SetChisqSig(params[:min_chisq_significance]) if params[:min_chisq_significance] + @@bbrc.SetChisqSig(params[:min_chisq_significance].to_f) if params[:min_chisq_significance] @@bbrc.SetConsoleOut(false) if prediction_feature.feature_type == "regression" @@bbrc.SetRegression(true) @@ -266,7 +266,7 @@ post '/fminer/last/?' do @@last.SetMaxHops(params[:hops]) if params[:hops] @@last.SetConsoleOut(false) if prediction_feature.feature_type == "regression" - @@bbrc.SetRegression(true) + @@last.SetRegression(true) else @training_classes = training_dataset.feature_classes(prediction_feature.uri) end @@ -359,7 +359,7 @@ post '/fminer/last/?' do end lu = LU.new # AM LAST: uses last-utils here - dom=lu.read(xml) # AM LAST: parse GraphML (needs hpricot, @ch: to be included in wrapper!) + dom=lu.read(xml) # AM LAST: parse GraphML smarts=lu.smarts_rb(dom,'nls') # AM LAST: converts patterns to LAST-SMARTS using msa variant (see last-pm.maunz.de) instances=lu.match_rb(smi,smarts) # AM LAST: creates instantiations instances.each do |smarts, ids| |