mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
added contribution from the prior to marginal LL printed in the model __str__
This commit is contained in:
parent
67f99817c9
commit
12e895f8a7
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ class model(parameterised):
|
|||
strs = [str(p) if p is not None else '' for p in self.priors]
|
||||
width = np.array(max([len(p) for p in strs] + [5])) + 4
|
||||
|
||||
s[0] = 'Marginal log-likelihood: {0:.3e}\n'.format(self.log_likelihood()) + s[0]
|
||||
MLL = self.log_likelihood() + self.log_prior()
|
||||
s[0] = 'Marginal log-likelihood: {0:.3e}\n'.format(MLL) + s[0]
|
||||
s[0] += "|{h:^{col}}".format(h = 'Prior', col = width)
|
||||
s[1] += '-'*(width + 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue