pdmlabs.utils.scores#
Normalise what a method or post-processor returns into the list the flavors and evaluators expect.
Functions
|
Return scores as a plain list, one entry per input row. |
- pdmlabs.utils.scores.as_score_list(scores, n_rows=None, where='predict')#
Return scores as a plain list, one entry per input row.
1-D numeric output (list, tuple, numpy array, pandas Series, or an (n, 1) column) becomes a list of Python floats. Output with per-row structure (e.g. survival curves shaped (n, 2, T)) is only split into a list of rows and left otherwise untouched.