MODULE REFERENCE

results

anomx.models.results

Typed model outputs, independent of anomaly decisions.

InferenceKind

InferenceKind

Bases: str, Enum

What kind of output a normality model produces.

Members

FORECASTattribute
RECONSTRUCTIONattribute
RECONSTRUCTION = 'reconstruction'
EMBEDDINGattribute
DENSITYattribute
DISTANCEattribute
CLASSIFICATIONattribute
CLASSIFICATION = 'classification'

InferenceOutput

InferenceOutput(kind: InferenceKind, frame: pd.DataFrame, output_columns: list[str] = <factory: list>, metadata: dict[str, Any] = <factory: dict>)

Model output aligned with the observations it was computed for.

Signature parameters
ParameterTypeDefault
kindInferenceKindrequired
framepd.DataFramerequired
output_columnslist[str]<factory: list>
metadatadict[str, Any]<factory: dict>

Members

kindattribute
frameattribute
output_columnsattribute
output_columns: list[str] = field(default_factory=list)
metadataattribute
metadata: dict[str, Any] = field(default_factory=dict)
to_recordsmethod
to_records() -> list[dict[str, Any]]

Returns list[dict[str, Any]]