pymc-devs/pymc — pull request #96 by isofer (2012-03-04 18:06:07+00:00)
Title: BIC and AIC should be calculated using the logp of the observed variables

according to the definitions of BIC and AIC, they should be calculated using the log-likelihood of the data.
As I understand the log-likelihood of the data does not equal to the logp of the whole model, but to the logp of the observed variables. I have applied this changes to MAP.fit

before the change:

```
L = self.lopg
```
now:

```
L = sum([x.logp for x in self.observed_stochastics])
```