toloka.client.pool.mixer_config.MixerConfig
| Source code
MixerConfig( self, *, real_tasks_count: int = 0, golden_tasks_count: int = 0, training_tasks_count: int = 0, min_real_tasks_count: Optional[int] = None, min_golden_tasks_count: Optional[int] = None, min_training_tasks_count: Optional[int] = None, force_last_assignment: Optional[bool] = None, force_last_assignment_delay_seconds: Optional[int] = None, mix_tasks_in_creation_order: Optional[bool] = None, shuffle_tasks_in_task_suite: Optional[bool] = None, golden_task_distribution_function: Optional[TaskDistributionFunction] = None, training_task_distribution_function: Optional[TaskDistributionFunction] = None)
Settings for automatically grouping tasks into suites (smart mixing).
You can set the number of general, training and control tasks in a task suite. Also, you control task shuffling and other settings.
Parameters | Type | Description |
---|---|---|
real_tasks_count | int | The number of general tasks in a task suite. If |
golden_tasks_count | int | The number of control tasks in a task suite. |
training_tasks_count | int | The number of training tasks in a task suite. |
min_real_tasks_count | Optional[int] | The minimum number of general tasks in a task suite if there are not enough tasks left to create a full task suite. Allowed range: from 0 to |
min_golden_tasks_count | Optional[int] | The minimum number of control tasks in a task suite if there are not enough control tasks left to create a full task suite. Allowed range: from 0 to |
min_training_tasks_count | Optional[int] | The minimum number of training tasks in a task suite if there are not enough training tasks left to create a full task suite. Allowed range: from 0 to |
force_last_assignment | Optional[bool] | A setting used when the number of remaining general tasks in the pool is less than the
Default: |
force_last_assignment_delay_seconds | Optional[int] | Time in seconds before assigning the last task suite. This parameter is used if |
mix_tasks_in_creation_order | Optional[bool] |
|
shuffle_tasks_in_task_suite | Optional[bool] |
|
golden_task_distribution_function | Optional[TaskDistributionFunction] | Customizing the number of control tasks in a task suite depending on completed tasks by a Toloker. |
training_task_distribution_function | Optional[TaskDistributionFunction] | Customizing the number of training tasks in a task suite depending on completed tasks by a Toloker. |
Last updated: August 28, 2023