mlrl.common.testbed.experiments.prediction.predictor_incremental module

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

Provides classes for repeatedly obtaining predictions from an ensemble model, using only a subset of the ensemble members.

class mlrl.common.testbed.experiments.prediction.predictor_incremental.IncrementalPredictionFunction(learner: sklearn.base.BaseEstimator)

Bases: PredictionFunction

A function that obtains and returns incremental predictions from a learner.

class mlrl.common.testbed.experiments.prediction.predictor_incremental.IncrementalPredictor(prediction_type: PredictionType, min_size: int, max_size: int, step_size: int)

Bases: Predictor

Repeatedly obtains predictions from a previously trained ensemble model, e.g., a model consisting of several rules, using only a subset of the ensemble members with increasing size.

obtain_predictions(learner: Any, dataset: Any, dataset_type: DatasetType, **kwargs) Generator[PredictionState, None, None]

See mlrl.testbed_sklearn.experiments.prediction.predictor.Predictor.obtain_predictions()