SHIBATA Hiroshi
null****@okkez*****
2014年 4月 26日 (土) 17:18:34 JST
SHIBATA Hiroshi 2014-04-26 17:18:34 +0900 (Sat, 26 Apr 2014) New Revision: aeb467301754f5ae35f8e3dea5e4dc6b8b99340f https://github.com/hiki/hiki/commit/aeb467301754f5ae35f8e3dea5e4dc6b8b99340f Message: style Modified files: plugin/50bayes_filter.rb Modified: plugin/50bayes_filter.rb (+2 -2) =================================================================== --- plugin/50bayes_filter.rb 2014-04-05 11:08:51 +0900 (d39e603) +++ plugin/50bayes_filter.rb 2014-04-26 17:18:34 +0900 (08a2054) @@ -74,8 +74,8 @@ class BayesFilterConfig @conf[REPORT] =****@reque*****[REPORT] @conf[SHARE_DB] =****@reque*****[SHARE_DB] @conf[LIMIT_OF_SUBMITTED_PAGES] =****@reque*****[LIMIT_OF_SUBMITTED_PAGES] || 50 - threshold_spam = (@request.params[THRESHOLD]||0.95).to_f - threshold_ham = (@request.params[THRESHOLD_HAM]||0.05).to_f + threshold_spam = (@request.params[THRESHOLD] || 0.95).to_f + threshold_ham = (@request.params[THRESHOLD_HAM] || 0.05).to_f if 0 <= threshold_ham and threshold_ham <= threshold_spam and threshold_spam <= 1.0 @conf[THRESHOLD_HAM] = threshold_ham @conf[THRESHOLD] = threshold_spam