multi_unit_prediction#
- ibl_bwb_eval.multi_unit.multi_unit_prediction(pred_proba, depths, probe_ids)[source]#
Multi-unit averaging of prediction probabilities.
Method introduced in NEMO. Each unit’s probabilities are replaced by the mean over its
MULTI_UNIT_MAX_NEIGHBORSnearest units on the same probe withinMULTI_UNIT_RADIUS_UM, itself included.- Parameters:
- Returns:
averaged probabilities. Shape (units, n_classes). Callers should apply argmax to obtain predicted labels.
- Return type:
averaged_proba