File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -209,8 +209,8 @@ def __init__(
209
209
210
210
When sampling, Step classes are responsible for computing and exposing statistics that can be reported on
211
211
progress bars. Each Step implements two class methods: :meth:`pymc.step_methods.BlockedStep._progressbar_config`
212
- and :meth:`pymc.step_methods.BlockedStep._make_update_stats_function `. `_progressbar_config` reports which
213
- columns should be displayed on the progress bar, and `_make_update_stats_function ` computes the statistics
212
+ and :meth:`pymc.step_methods.BlockedStep._make_progressbar_update_functions `. `_progressbar_config` reports which
213
+ columns should be displayed on the progress bar, and `_make_progressbar_update_functions ` computes the statistics
214
214
that will be displayed on the progress bar.
215
215
216
216
Parameters
@@ -281,7 +281,7 @@ def __init__(
281
281
progressbar_theme = progressbar_theme ,
282
282
)
283
283
self .progress_stats = progress_stats
284
- self .update_stats_functions = step_method ._make_update_stats_functions ()
284
+ self .update_stats_functions = step_method ._make_progressbar_update_functions ()
285
285
286
286
self ._show_progress = show_progress
287
287
self .divergences = 0
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ def _progressbar_config(n_chains=1):
189
189
return columns , stats
190
190
191
191
@staticmethod
192
- def _make_update_stats_functions ():
192
+ def _make_progressbar_update_functions ():
193
193
def update_stats (step_stats ):
194
194
return step_stats
195
195
@@ -332,10 +332,10 @@ def _progressbar_config(self, n_chains=1):
332
332
333
333
return columns , stats
334
334
335
- def _make_update_stats_functions (self ):
335
+ def _make_progressbar_update_functions (self ):
336
336
update_functions = []
337
337
for method in self .methods :
338
- update_functions .extend (method ._make_update_stats_functions ())
338
+ update_functions .extend (method ._make_progressbar_update_functions ())
339
339
return update_functions
340
340
341
341
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ def _progressbar_config(n_chains=1):
248
248
return columns , stats
249
249
250
250
@staticmethod
251
- def _make_update_stats_functions ():
251
+ def _make_progressbar_update_functions ():
252
252
def update_stats (stats ):
253
253
return {key : stats [key ] for key in ("diverging" , "step_size" , "tree_size" )}
254
254
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ def _progressbar_config(n_chains=1):
346
346
return columns , stats
347
347
348
348
@staticmethod
349
- def _make_update_stats_functions ():
349
+ def _make_progressbar_update_functions ():
350
350
def update_stats (step_stats ):
351
351
return {
352
352
"accept_rate" if key == "accept" else key : step_stats [key ]
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ def _progressbar_config(n_chains=1):
212
212
return columns , stats
213
213
214
214
@staticmethod
215
- def _make_update_stats_functions ():
215
+ def _make_progressbar_update_functions ():
216
216
def update_stats (step_stats ):
217
217
return {key : step_stats [key ] for key in {"tune" , "nstep_out" , "nstep_in" }}
218
218
You can’t perform that action at this time.
0 commit comments