Skip to content

Commit 58b49f2

Browse files
authored
Fix numpy deprecation warning when running tests in test_metropolis.py
1 parent 59176b6 commit 58b49f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/step_methods/metropolis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ def astep(self, q0: RaveledVars) -> tuple[RaveledVars, StatsType]:
12141214

12151215
stats = {
12161216
"tune": self.tune,
1217-
"scaling": self.scaling,
1217+
"scaling": np.mean(self.scaling),
12181218
"lambda": self.lamb,
12191219
"accept": np.exp(accept),
12201220
"accepted": accepted,

0 commit comments

Comments
 (0)