Skip to content

Commit

Permalink
check prior against non-transformed lprob
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Jun 17, 2024
1 parent 80b0a56 commit 806f9fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pydsge/estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,8 @@ def llike(parameters, par_fix, linear, verbose, seed):
def lprob(
par, par_fix=par_fix, linear=None, verbose=verbose > 1, temp=1, use_prior_transform=use_prior_transform):

with warnings.catch_warnings(record=True):
warnings.filterwarnings("error")
try:
if use_prior_transform:
par = bptrans(par)
except Exception as err:
return -np.inf
if use_prior_transform:
par = bptrans(par)

lp = lprior(par)

Expand Down

0 comments on commit 806f9fb

Please sign in to comment.