Skip to content

Commit 91d15b1

Browse files
committed
add decay
1 parent 8f49604 commit 91d15b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dime_sampler/moves.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class DIMEMove(RedBlueMove):
4141
probability to draw an adaptive independence Metropolis Hastings (AIMH) proposal. By default this is set to :math:`0.1`.
4242
df_proposal_dist : float, optional
4343
degrees of freedom of the multivariate t distribution used for AIMH proposals. Defaults to :math:`10`.
44+
rho : float, optional
45+
decay parameter for the aimh proposal mean and covariances. Defaults to :math:`0.999`.
4446
"""
4547

4648
def __init__(
@@ -110,8 +112,7 @@ def update_proposal_dist(self, x):
110112
np.exp(self.cumlweight - newcumlweight) * self.prop_mean
111113
+ np.exp(lweight - newcumlweight) * nmean
112114
)
113-
# self.cumlweight = newcumlweight + np.log(self.decay)
114-
self.cumlweight = newcumlweight
115+
self.cumlweight = newcumlweight + np.log(self.decay)
115116

116117
def get_proposal(self, x, xref, random):
117118
"""Actual proposal function

0 commit comments

Comments
 (0)