nirs4all.pipeline.dagml.prediction_targets module
Project observed targets into a captured classifier’s frozen output domain.
- nirs4all.pipeline.dagml.prediction_targets.attach_categorical_scoring_context(result: PredictResult, artifact: dict[str, Any]) PredictResult[source]
Attach a private fitted context; public metadata remains plain JSON.
- nirs4all.pipeline.dagml.prediction_targets.categorical_scoring_targets(result: PredictResult, raw_targets: Any, validity_mask: Any = None) dict[str, Any] | None[source]
Apply only the captured input converter and fitted target transform.
NumericConverter preserves the SDK’s training target precision. Missing or unrepresentable values remain masked; none are turned into a class label. This function never fits an encoder or a target transform.