src.utils.preds.max_pred_reduce_strategy
Classes
|
- class src.utils.preds.max_pred_reduce_strategy.MaxPredReduceStrategy(**kwargs)
- Author:
Alberto M. Esmoris Pena
Reduce many predictions per point to a single one by taking the max value.
The reduced prediction for the \(j\)-th class of the \(i\)-th point will be as shown below, assuming \(K\) values for the reduction.
\[z_{ij} = \max*_{1 \leq k < K} z_{ijk}\]See
PredReduceStrategy.- __init__(**kwargs)
Initialize/instantiate a mean prediction reduction strategy.
- Parameters:
kwargs – The attributes for the MaxPredReduceStrategy.
- reduce(reducer, npoints, nvals, Z, I)