Fork me on GitHub
摘要: def classifyNB(vec2Classify, p0Vec, p1Vec, pClass1): p1 = sum(vec2Classify * p1Vec) + log(pClass1) p0 = sum(vec2Classify * p0Vec) + log(1.0 - pClass1) 阅读全文
posted @ 2015-12-15 20:40 HarlanC 阅读(278) 评论(0) 推荐(0) 编辑