朴素贝叶斯(naive bayes)
摘要:
#coding=utf-8 #Naive Bayes #Calculate the Prob. of class:clsdef P(data,cls_val,cls_name="class"): cnt = 0.0 for e in data: if e[cls_name] == cls_val: 阅读全文
posted @ 2017-04-25 22:35 多一点 阅读(436) 评论(0) 推荐(0) 编辑