# MajorityVote

toloka.client.collectors.MajorityVote | Source code

MajorityVote(
self,
*,
uuid: Optional[UUID] = None,
history_size: Optional[int] = None
)


Majority vote is a quality control method based on coinciding responses from the majority

The response chosen by the majority is considered correct, and other responses are considered incorrect. Depending on the percentage of correct responses, you can either increase the user's skill value, or ban the user from tasks.

Used with conditions:

• CorrectAnswersRate - The percentage of correct responses.
• IncorrectAnswersRate - The percentage of incorrect responses.

Used with actions:

• ApproveAllAssignments - Approve all replies from the performer.
• RejectAllAssignments - Reject all replies from the performer.
• SetSkill - Set perfmer skill value.
• SetSkillFromOutputField - Set performer skill value from source.

## Parameters Description

Parameters Type Description
answer_threshold Optional[int]

The number of users considered the majority (for example, 3 out of 5).

history_size Optional[int]

The maximum number of the user's recent responses in the project to use for calculating the percentage of correct responses. If this field is omitted, the calculation is based on all the user's responses in the pool.

Examples:

How to ban a performer in this project if he made enough answers (only for pools with post acceptance).

new_pool = toloka.pool.Pool(....)