Skip to content

Commit 75f64e9

Browse files
charlotteburkiColCarroll
authored andcommitted
Blocked metropolis with fixed and continuous variables (#2918)
1 parent 883f4ef commit 75f64e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/step_methods/metropolis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def astep(self, q0):
154154
q = (q0 + delta).astype('int64')
155155
else:
156156
delta[self.discrete] = np.round(
157-
delta[self.discrete], 0).astype('int64')
158-
q = (q0 + delta).astype('int64')
157+
delta[self.discrete], 0)
158+
q = (q0 + delta)
159159
else:
160160
q = floatX(q0 + delta)
161161

0 commit comments

Comments
 (0)