Skip to content

Quorum stopping

QuorumStopping dataclass #

QuorumStopping(threshold: int, max_responses: int)

Stops collecting responses on a datapoint once enough of them agree.

A datapoint stops when threshold responses pick the same answer, when that can no longer happen within max_responses, or at max_responses.

Pass it as responses_per_datapoint on classification and compare job definitions, or assign it to RapidataJobDefinition.responses_per_datapoint. Other job types raise ValueError.

Parameters:

Name Type Description Default
threshold int

The number of matching responses that ends the datapoint.

required
max_responses int

The most responses collected per datapoint.

required

Attributes:

Name Type Description
threshold int

The number of matching responses that ends the datapoint.

max_responses int

The most responses collected per datapoint.