src.utils.preds.prediction_reducer_factory
Classes
- 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
PredictionReducerfrom the given dict-like specification.- Parameters:
spec – The specification on how to build the prediction reducer.
- Returns:
The built prediction reducer.
- Return type:
- static make_reduce_strategy(spec)
Make a
PredReduceStrategyfrom 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:
- static make_select_strategy(spec)
Make a
PredSelectStrategyfrom 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: