Skip to content

Unused compute_draw_speed #7798

@williambdean

Description

@williambdean

This logic is redefined

pymc/pymc/util.py

Lines 860 to 870 in c8d83ca

def compute_draw_speed(self, chain_idx, draws):
elapsed = self._progress.tasks[chain_idx].elapsed
speed = draws / max(elapsed, 1e-6)
if speed > 1 or speed == 0:
unit = "draws/s"
else:
unit = "s/draws"
speed = 1 / speed
return speed, unit

pymc/pymc/util.py

Lines 939 to 948 in c8d83ca

def compute_draw_speed(elapsed, draws):
speed = draws / max(elapsed, 1e-6)
if speed > 1 or speed == 0:
unit = "draws/s"
else:
unit = "s/draws"
speed = 1 / speed
return speed, unit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions