src.utils.preds.prediction_reducer_factory

Classes

PredictionReducerFactory()

class src.utils.preds.prediction_reducer_factory.PredictionReducerFactory
Author:

Alberto M. Esmoris Pena

Factory to build instances of PredictionReducer.

static make_from_dict(spec)

Make a PredictionReducer from the given dict-like specification.

Parameters:

spec – The specification on how to build the prediction reducer.

Returns:

The built prediction reducer.

Return type:

PredictionReducer.

static make_reduce_strategy(spec)

Make a PredReduceStrategy from the given dict-like specification.

Parameters:

spec (dict) – The specification on how to build the prediction reduce strategy.

Returns:

The built prediction reduce strategy

Return type:

PredReduceStrategy

static make_select_strategy(spec)

Make a PredSelectStrategy from the given dict-like specification.

Parameters:

spec (dict) – The specification on how to build the prediction select strategy.

Returns:

The built prediction select strategy.

Return type:

PredSelectStrategy