Skip to content

Commit 967e4df

Browse files
committed
add potential fix (conditional of upstream change)
1 parent 2253b67 commit 967e4df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymc_bart/pgbart.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,13 @@ def competence(var: pm.Distribution, has_grad: bool) -> Competence:
426426
return Competence.IDEAL
427427
return Competence.INCOMPATIBLE
428428

429+
@staticmethod
430+
def _make_update_stats_functions():
431+
def update_stats(step_stats):
432+
return {key: step_stats[key] for key in ("variable_inclusion", "tune")}
433+
434+
return (update_stats,)
435+
429436

430437
class RunningSd:
431438
"""Welford's online algorithm for computing the variance/standard deviation"""

0 commit comments

Comments
 (0)