A Naïve Naïve Bayes Classifier (Raw & Laplace)
In Bayesian statistical inference, a prior probability distribution, often simply called the prior, of an uncertain quantity is the probability distri[……]
In Bayesian statistical inference, a prior probability distribution, often simply called the prior, of an uncertain quantity is the probability distri[……]
有一天,我在探索Mathematica的帮助文档时,发现了这么一个东西:
哪个男生不想拥有一个迷宫生成器呢?
短短十几行代码就搞定了这个问题,MMA太强了吧,在这么想的同时,才发现远远看上去阳间的代码,仔细一看,不能再阴间了。
瞧瞧这Module, Annotati[……]
给定测试集P
, 其Shape为(M,D)
, 再给定训练集(N,D)
, 其Shape为(N,D)
.
令P_i
为P
的第i
行, 即P_i = [P_{i1}\space P_{i2}\space ··· \space P_{iD}]
, 同理C_j=[C_{j1}\space C_{j2}\space ·[......]