mlrl.testbed.experiments.prediction_scope module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides classes that provide information about predictions.

class mlrl.testbed.experiments.prediction_scope.GlobalPredictionScope

Bases: PredictionScope

Provides information about predictions that have been obtained from a global model.

property model_size: int

See mlrl.testbed.prediction_scope.PredictionScope.model_size()

class mlrl.testbed.experiments.prediction_scope.IncrementalPredictionScope(model_size: int)

Bases: PredictionScope

Provides information about predictions that have been obtained incrementally.

property model_size: int

See mlrl.testbed.prediction_scope.PredictionScope.model_size()

class mlrl.testbed.experiments.prediction_scope.PredictionScope

Bases: ABC

Provides information about whether predictions have been obtained from a global model or incrementally.

property is_global: bool

True, if the predictions have been obtained from a global model, False otherwise.

abstract property model_size: int

The size of the model or 0, if the predictions have been obtained from a global model.