MODULE REFERENCE
results
anomx.models.resultsTyped model outputs, independent of anomaly decisions.
classView source ↗
InferenceKind
InferenceKindBases: str, Enum
What kind of output a normality model produces.
Members
FORECASTattribute
FORECAST = 'forecast'RECONSTRUCTIONattribute
RECONSTRUCTION = 'reconstruction'EMBEDDINGattribute
EMBEDDING = 'embedding'DENSITYattribute
DENSITY = 'density'DISTANCEattribute
DISTANCE = 'distance'CLASSIFICATIONattribute
CLASSIFICATION = 'classification'classView source ↗
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.
| Parameter | Type | Default |
|---|---|---|
kind | InferenceKind | required |
frame | pd.DataFrame | required |
output_columns | list[str] | <factory: list> |
metadata | dict[str, Any] | <factory: dict> |
Members
kindattribute
kind: InferenceKindframeattribute
frame: pd.DataFrameoutput_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]]