AppBatch

toloka.client.app.AppBatch | Source code

AppBatch(
self,
*,
id: Optional[str] = None,
app_project_id: Optional[str] = None,
name: Optional[str] = None,
status: Union[Status, str, None] = None,
items_count: Optional[int] = None,
item_price: Optional[Decimal] = None,
cost: Optional[Decimal] = None,
cost_of_processed: Optional[Decimal] = None,
created_at: Optional[datetime] = None,
started_at: Optional[datetime] = None,
finished_at: Optional[datetime] = None,
read_only: Optional[bool] = None,
last_items_import: Optional[AppItemImport] = None,
confidence_avg: Optional[float] = None,
items_processed_count: Optional[int] = None,
eta: Optional[datetime] = None,
items_per_state: Optional[Dict] = None
)

An App batch.

A batch contains task items that are sent for labeling together.

Parameters description

ParametersTypeDescription
idOptional[str]

The ID of the batch.

app_project_idOptional[str]

The ID of the project containing the batch.

nameOptional[str]

The batch name.

statusOptional[Status]

The batch status.

items_countOptional[int]

The number of items in the batch.

item_priceOptional[Decimal]

The cost of processing a single item in the batch.

costOptional[Decimal]

The cost of processing the batch.

cost_of_processedOptional[Decimal]

Cost of already processed task items.

created_atOptional[datetime]

The date and time when the batch was created.

started_atOptional[datetime]

The date and time when batch processing started.

finished_atOptional[datetime]

The date and time when batch processing was completed.

read_onlyOptional[bool]

Whether the batch can be updated or not.

last_items_importOptional[AppItemImport]

Information about the last operation that added items.

confidence_avgOptional[float]

Average labeling quality.

items_processed_countOptional[int]

The number of labeled items.

etaOptional[datetime]

Expected date and time when batch processing will be completed.

items_per_stateOptional[Dict]

Statistics on the number of items in each state.

Examples:

batches = toloka_client.get_app_batches(app_project_id='Q2d15QBjpwWuDz8Z321g', status='NEW')
for batch in batches:
print(batch.id, batch.status, batch.items_count)

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