Skip to content

Base referee

Referee #

Bases: ABC

The referee defines when a rapid is considered complete.

to_dict abstractmethod #

to_dict() -> Mapping[str, str | int | float]

Convert the referee to a referee configuration dict.

Source code in src/rapidata/rapidata_client/referee/base_referee.py
@abstractmethod
def to_dict(self) -> Mapping[str, str | int | float]:
    """
    Convert the referee to a referee configuration dict.
    """
    pass

to_model abstractmethod #

to_model() -> Any

Convert the referee to a referee configuration model.

Source code in src/rapidata/rapidata_client/referee/base_referee.py
@abstractmethod
def to_model(self) -> Any:
    """
    Convert the referee to a referee configuration model.
    """
    pass