Skip to content

None

NoneEnsemble

Bases: EnsembleBase

Ensemble method that does not do anything. This is useful for single annotator experiments.

Source code in src/ensemble/none.py
 9
10
11
12
13
14
15
class NoneEnsemble(EnsembleBase):
    """
    Ensemble method that does not do anything. This is useful for single annotator experiments.
    """

    def run(self, annotations: List[Annotation]) -> Tuple[Union[List | np.array], int]:
        return annotations[0], 0