Work Status

olympus.dashboard.plots.work_status.aggregate_overview_altair(status, name='experiment')[source]
Parameters:
status: List[dict(experiment=str, status=str, count=int)]]

List of the count of each message status for different experiment

agents: List[dict(experiment=str, agents=str, count=int)]

Examples

>>> status = [
...     dict(experiment='classification', status='pending', count=10),
...     dict(experiment='classification', status='in-progress', count=11),
...     dict(experiment='classification', status='finished', count=12)
... ]
>>> chart = aggregate_overview_altair(status)
../../_images/aggregate_overview.png
olympus.dashboard.plots.work_status.prepare_overview_altair(data)[source]
olympus.dashboard.plots.work_status.work_status(status)[source]

Return a pie chart for a given dictionary

Parameters:
status: Dict[Key, int]

A simple dictionary with integer or floats as value and string as keys

Examples


>>> status = {
...     'pending': 10,
...     'in-progress': 20,
...     'finished': 40,
...     'lost': 0,
...     'failed': 0
... }
>>> fig = work_status(status)
../../_images/work_status.png