compileml.batch

score_batch

def score_batch(artifact: dict, X) -> dict[str, numpy.ndarray]

from compileml.batch import score_batch

Score a matrix of rows: the runtime's score path, one array per output.

Returns raw_micro, latent_micro, latent_int, band_idx and pd_ppm as int64 arrays, plus pd as float64. Every integer equals what decide(artifact, row, explain=False) returns for that row.

Parameters#

NameTypeDefaultKind
artifactdictrequiredpositional
X—requiredpositional

Returns#

dict[str, numpy.ndarray]

Raises#

Read from the function body and the private helpers it calls, not inferred. A function that raises nothing has no section here.

Worked example: score_batch →