MODULE REFERENCE
characteristics
anomx.data.base.characteristicsOrthogonal descriptive properties of an observation set.
Instead of hard-coding mutually exclusive dataset types (samples, sequences, time series, graphs, hierarchies), an ObservationSet is described by independent structural dimensions. Algorithms declare requirements against these dimensions through anomx.base.ComponentCapabilities.
classView source ↗
DataCharacteristics
DataCharacteristics(ordering: Ordering = Ordering.UNORDERED, temporal_semantics: TemporalSemantics = TemporalSemantics.NONE, grouping: Grouping = Grouping.SINGLE_POPULATION, topology: Topology = Topology.NONE, structure: Structure = Structure.FLAT, modality: Modality = Modality.NUMERIC, observation_unit: ObservationUnit = ObservationUnit.SAMPLE, feature_count: int = 0, observation_count: int = 0, has_missing_values: bool = False, metadata: dict[str, Any] = <factory: dict>)Derived structural description of an observation set.
| Parameter | Type | Default |
|---|---|---|
ordering | Ordering | Ordering.UNORDERED |
temporal_semantics | TemporalSemantics | TemporalSemantics.NONE |
grouping | Grouping | Grouping.SINGLE_POPULATION |
topology | Topology | Topology.NONE |
structure | Structure | Structure.FLAT |
modality | Modality | Modality.NUMERIC |
observation_unit | ObservationUnit | ObservationUnit.SAMPLE |
feature_count | int | 0 |
observation_count | int | 0 |
has_missing_values | bool | False |
metadata | dict[str, Any] | <factory: dict> |
Members
orderingattribute
ordering: Ordering = Ordering.UNORDEREDtemporal_semanticsattribute
temporal_semantics: TemporalSemantics = TemporalSemantics.NONEgroupingattribute
grouping: Grouping = Grouping.SINGLE_POPULATIONtopologyattribute
topology: Topology = Topology.NONEstructureattribute
structure: Structure = Structure.FLATmodalityattribute
modality: Modality = Modality.NUMERICobservation_unitattribute
observation_unit: ObservationUnit = ObservationUnit.SAMPLEfeature_countattribute
feature_count: int = 0observation_countattribute
observation_count: int = 0has_missing_valuesattribute
has_missing_values: bool = Falsemetadataattribute
metadata: dict[str, Any] = field(default_factory=dict)is_temporalproperty
is_orderedproperty
is_multivariateproperty
has_topologyproperty
has_hierarchyproperty
to_dictmethod
classView source ↗
Grouping
GroupingBases: str, Enum
Members
SINGLE_POPULATIONattribute
SINGLE_POPULATION = 'single_population'MULTIPLE_ENTITIESattribute
MULTIPLE_ENTITIES = 'multiple_entities'MULTIPLE_SEQUENCESattribute
MULTIPLE_SEQUENCES = 'multiple_sequences'classView source ↗
Modality
ModalityBases: str, Enum
Members
NUMERICattribute
NUMERIC = 'numeric'CATEGORICALattribute
CATEGORICAL = 'categorical'TEXTattribute
TEXT = 'text'MIXEDattribute
MIXED = 'mixed'classView source ↗
ObservationUnit
ObservationUnitBases: str, Enum
Members
SAMPLEattribute
SAMPLE = 'sample'TIMESTEPattribute
TIMESTEP = 'timestep'WINDOWattribute
WINDOW = 'window'SEQUENCEattribute
SEQUENCE = 'sequence'NODEattribute
NODE = 'node'EDGEattribute
EDGE = 'edge'GRAPHattribute
GRAPH = 'graph'classView source ↗
Ordering
OrderingBases: str, Enum
Members
UNORDEREDattribute
UNORDERED = 'unordered'ORDEREDattribute
ORDERED = 'ordered'classView source ↗
Structure
StructureBases: str, Enum
Members
FLATattribute
FLAT = 'flat'NESTEDattribute
NESTED = 'nested'HIERARCHICALattribute
HIERARCHICAL = 'hierarchical'classView source ↗
TemporalSemantics
TemporalSemanticsBases: str, Enum
Members
NONEattribute
NONE = 'none'EVENT_TIMEattribute
EVENT_TIME = 'event_time'REGULAR_TIMEattribute
REGULAR_TIME = 'regular_time'IRREGULAR_TIMEattribute
IRREGULAR_TIME = 'irregular_time'classView source ↗
Topology
TopologyBases: str, Enum
Members
NONEattribute
NONE = 'none'GRAPH_EDGESattribute
GRAPH_EDGES = 'graph_edges'SPATIAL_ADJACENCYattribute
SPATIAL_ADJACENCY = 'spatial_adjacency'