Chart

toloka.metrics.jupyter_dashboard.Chart | Source code

Chart(
self,
name: Optional[str],
metrics: List[BaseMetric],
loop=None
)

One chart on the dashboard. Could include several metrics.

If you want to draw really cool chart that displays several metrics in the same coordinates.

Parameters description

ParametersTypeDescription
nameOptional[str]

The header for this chart. Could be None, Chart create name from the first metric.

metricsList[BaseMetric]

List of metrics, that will be displayed on this chart (in the same coordinates).

Examples:

How to display all submitted and accepted answers from some pool and its checking pool, in one chart.

Chart(
'Answers count',
[
metrics.AssignmentsInPool('123', submitted_name='submitted in 123', accepted_name='accepted in 123', toloka_client=client1),
metrics.AssignmentsInPool('456', submitted_name='submitted in 456', accepted_name='accepted in 456', toloka_client=client2),
]
)

Methods summary

MethodDescription
create_async_tasksNone
create_figureCreate figure for this chart. Called at each step.
update_metricsGathers all metrics, and stores them in lines.

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming