Skip to content

Commit

Permalink
Fixed deprecation bug in SPM.score().
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranade committed Aug 6, 2018
1 parent 2376df4 commit 0c1aeb0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/qinfer/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,13 @@ def score(self, outcomes, modelparams, expparams, return_L=False):
new_eps['w_'] = 0
new_eps['t'] = expparams

return super(SimplePrecessionModel, self).score(outcomes, modelparams, new_eps, return_L)

q = super(SimplePrecessionModel, self).score(outcomes, modelparams, new_eps, return_L=False)

if return_L:
return q, self.likelihood(outcomes, modelparams, expparams)
else:
return q

class CoinModel(FiniteOutcomeModel, DifferentiableModel):
r"""
Arguably the simplest possible model; the unknown model parameter
Expand Down

0 comments on commit 0c1aeb0

Please sign in to comment.