Score the Group-DRO kit x biofluid robust discriminator
Source:R/singlesample-dro-group-wrapper.R
score_dro_group.RdScores each row of X independently with the frozen model from
fit_dro_group by delegating to score_group_dro_scorer
on the frozen primitive fit. The primitive maps each specimen to the frozen
train-only CLR (per-row pseudocount and pivot centring), scales it with the
frozen median / MAD constants, and applies the frozen logistic head; the
returned logistic probability is already oriented so larger = more case-like.
The score of a row depends only on that row and the frozen model.
Arguments
- model
A
dro_group_modelobject fromfit_dro_group.- X
Numeric matrix (samples \(\times\) features) of non-negative abundances with named feature columns.
- meta
Optional per-sample metadata. Forwarded to the primitive only as a diagnostic (it attaches test-group audit attributes) and never affects the numeric score, which is returned as a plain finite numeric vector.
Examples
if (FALSE) { # \dontrun{
model <- fit_dro_group(X, y, meta)
score_dro_group(model, X[1, , drop = FALSE])
} # }