ã¢ã«ã´ãªãºã ã®ç解ãæ·±ããçºãRubyã§æ¸ãããå®è£ ããã®ã¾ã¾PHPã«ç§»æ¤ãã¦ã¿ãã Complement Naive Bayes ããããã®ãRubyã§æ¸ãã - è¨é²ç¨ http://d.hatena.ne.jp/laughing/20101114/1289698415 <?php class CNB { public function __construct($smoothing_parameter=1) { $this->frequency_of_word_by_class = array(); $this->number_of_training_data_of_class = array(); $this->smoothing_parameter = $smoothing_parameter; } public function training($label, $sosei)
{{#tags}}- {{label}}
{{/tags}}