BaseMetric

toloka.metrics.metrics.BaseMetric | Source code

BaseMetric(
self,
*,
toloka_client: Optional[TolokaClient] = None,
atoloka_client: Optional[AsyncTolokaClient] = None,
timeout: timedelta = ...
)

Base class for all metrics.

Stores TolokaClient instance for this metric.

Methods summary

MethodDescription
get_line_namesReturns a list of metric names that can be generated by this class instance.
get_linesGather and return metrics
set_clientSets both TolokaClient and AsyncTolokaClient for the object.

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