文件名称:Naive-bayes
介绍说明--下载内容来自于网络,使用问题请自行百度
本文以拼写检查作为例子,讲解Naive Bayes分类器是如何实现的。对于用户输入的一个单词(words),拼写检查试图推断出最有可能的那个正确单词(correct)。当然,输入的单词有可能本身就是正确的。比如,输入的单词thew,用户有可能是想输入the,也有可能是想输入thaw。为了解决这个问题,Naive Bayes分类器采用了后验概率P(c|w)来解决这个问题。P(c|w)表示在发生了w的情况下推断出c的概率。为了找出最有可能c,应找出有最大值的P(c|w),即求解问题-In this paper, spell check as an example to explain the Naive Bayes classifier is implemented. For a user to enter a word (words), the spelling checker tries to infer the most likely the correct word (correct). Of course, it is possible to enter the word itself is correct. For example, enter the word thew, users may want to enter the, there may be trying to enter the thaw. After To solve this problem, Naive Bayes classifier using a posterior probability P (c | w) to solve this problem. The P (c | w) represents the case of the probability of w c is inferred. In order to identify the most likely c, you should find out the maximum value of P (c | w), that is, to solve the problem
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Naive bayes.py
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.