The scoring every arm of a ladder and every candidate of a run goes through, reachable on its own for a prediction matrix that came from somewhere else: a combination of arms, a model fitted outside the package, predictions read back from a file.
Arguments
- y
The response, as a matrix of units by variables.
- p
Held-out predictions for the same units and variables.
- folds
A
fold_map()result, or one fold per unit.- cells
A
scorable_cells()mask. Computed fromyandfoldswhen left unset.- metric
Name of a registered metric to read the cells by, or a function of
(y, p).
Value
A data frame of one row per variable and fold, carrying the score and whether the cell was scorable.