机器学习课程-温州大学-04机器学习-朴素贝叶斯
关。我们的训练数据有5句话: 文本 标签 A great game Sports The election was over Not Sports Very clean match Sports A clean but forgettable game Sports It was a close election Not Sports 我们想要计算句子“A very close game”是 Sports Sports )是⅖。 文本 标签 A great game Sports The election was over Not Sports Very clean match Sports A clean but forgettable game Sports It was a close election Not Sports 23 3.朴素贝叶斯案例 通过使用一种称为拉普拉斯平滑的方法:我们为每个计数加1,因此 单词的数量添加到除 数中,因此计算结果永远不会大于1。 在这里的情况下,可能单词是['a', 'great', 'very', 'over', 'it', 'but', 'game', 'election', 'clean', 'close', 'the', 'was', 'forgettable', 'match']。 由于可能的单词数是14,因此应用平滑处理可以得到 ?( game |0 码力 | 31 页 | 1.13 MB | 1 年前3《Efficient Deep Learning Book》[EDL] Chapter 7 - Automation
substantial variations over the election years. In other states, such counties are far lesser in number. Hence, a model to predict the results of a US presidential election would benefit from a more aggressive0 码力 | 33 页 | 2.48 MB | 1 年前3
共 2 条
- 1