Skip to content

declearn.main.config.EvaluateConfig

Bases: TrainingConfig

Dataclass wrapping parameters for an evaluation round.

Please refer to the parent class TrainingConfig for details on the wrapped parameters / attribute. Note that n_epoch is dropped when this config is turned into an EvaluationRequest message.

Source code in declearn/main/config/_dataclasses.py
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
@dataclasses.dataclass
class EvaluateConfig(TrainingConfig):
    """Dataclass wrapping parameters for an evaluation round.

    Please refer to the parent class `TrainingConfig` for details
    on the wrapped parameters / attribute. Note that `n_epoch` is
    dropped when this config is turned into an EvaluationRequest
    message.
    """

    drop_remainder: bool = False

    @property
    def message_params(self) -> Dict[str, Any]:
        """ValidRequest message parameters from this config."""
        params = super().message_params
        params.pop("n_epoch")
        return params

message_params: Dict[str, Any] property

ValidRequest message parameters from this config.