Skip to contents

Scores 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.

Usage

score_dro_group(model, X, meta = NULL)

Arguments

model

A dro_group_model object from fit_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.

Value

Plain finite numeric vector of length nrow(X); larger values are more case-like.

Examples

if (FALSE) { # \dontrun{
model <- fit_dro_group(X, y, meta)
score_dro_group(model, X[1, , drop = FALSE])
} # }