Skip to content

orcalib.rac.return_types#

Common type definitions and utility functions for the RAC module.

PredictionResult dataclass #

1
2
3
PredictionResult(
    label, confidence, memories, logits, feedback=None
)

The result of a single prediction.

label instance-attribute #

label

The predicted label.

confidence instance-attribute #

confidence

The confidence of the prediction.

memories instance-attribute #

memories

The memory lookups that were used to guide this prediction.

logits instance-attribute #

logits

The logits of the prediction.