Closed gdxie1 closed 2 years ago
Should it be?
when you added the prior distribution, you should -1 and -2. Maybe I am wrong. Thank you anyway, it's a good project.
Could you specify from which equation in PRML you though it should have -1 and -2?
Hi, I checked the book and found that you are right. I mistake the MAP of mu as the p(x=1|D) under Bayes. Sorry for this.
Oh, I see! Yeah, it is confusing that we need them for estimation of mu and not for p(x=1||D).
the line in the draw should change from self.mu.n_ones / (self.mu.n_ones + self.mu.n_zeros) to
_(self.mu.n_ones - 1) / (self.mu.n_ones + self.mu.nzeros -2)