Skip to content

Labeling selection

LabelingSelection #

LabelingSelection(
    amount: int,
    retrieval_mode: RetrievalMode = Random,
    max_iterations: int | None = None,
)

Bases: RapidataSelection

Labeling selection class.

Decides how many actual datapoints you want to show per session.

Parameters:

Name Type Description Default
amount int

The amount of labeling rapids that will be shown per session.

required
retrieval_mode RetrievalMode

The retrieval mode to use. Defaults to "Random".

Random
max_iterations int | None

The maximum number an annotator can see the same task. Defaults to None. This parameter is only taken into account when using "Shuffled" or "Sequential" retrieval modes.

None
Source code in src/rapidata/rapidata_client/selection/labeling_selection.py
def __init__(self, amount: int, retrieval_mode: RetrievalMode = RetrievalMode.Random, max_iterations: int | None = None):
    self.amount = amount
    self.retrieval_mode = retrieval_mode
    self.max_iterations = max_iterations