src.utils.preds.pred_select_strategy
Classes
|
- class src.utils.preds.pred_select_strategy.PredSelectStrategy(**kwargs)
- Author:
Alberto M. Esmoris Pena
Interface for select operations on predictions.
See
PredictionReducer.- __init__(**kwargs)
Initialize/instantiate a prediction selection strategy.
- Parameters:
kwargs – The attributes for the PredSelectStrategy.
- abstractmethod select(reducer, Z)
The method that provides the logit to select the values of interest from the reduced predictions. It must be overridenn by any concrete implementation of a prediction selection strategy.
- Parameters:
reducer (
PredictionReducer) – The prediction reducer that is doing the reduction.Z – Matrix-like array. There are as many rows as points and as many columns as reduced predictions.
- Returns:
The selected predictions derived from the reduced predictions as a matrix. Either a matrix with the \(n_y\) point-wise output values \(\pmb{\hat{Y}} \in \mathbb{R}^{m \times n_y}\) or a vector for the case of a single point-wise scalar output \(\pmb{\hat{y}} \in \mathbb{R}^{m}\).
- Return type:
np.ndarray