MODULE REFERENCE

characteristics

anomx.data.base.characteristics

Orthogonal 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.

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.

Signature parameters
ParameterTypeDefault
orderingOrderingOrdering.UNORDERED
temporal_semanticsTemporalSemanticsTemporalSemantics.NONE
groupingGroupingGrouping.SINGLE_POPULATION
topologyTopologyTopology.NONE
structureStructureStructure.FLAT
modalityModalityModality.NUMERIC
observation_unitObservationUnitObservationUnit.SAMPLE
feature_countint0
observation_countint0
has_missing_valuesboolFalse
metadatadict[str, Any]<factory: dict>

Members

orderingattribute
ordering: Ordering = Ordering.UNORDERED
temporal_semanticsattribute
temporal_semantics: TemporalSemantics = TemporalSemantics.NONE
groupingattribute
grouping: Grouping = Grouping.SINGLE_POPULATION
topologyattribute
topology: Topology = Topology.NONE
structureattribute
structure: Structure = Structure.FLAT
modalityattribute
modality: Modality = Modality.NUMERIC
observation_unitattribute
observation_unit: ObservationUnit = ObservationUnit.SAMPLE
feature_countattribute
observation_countattribute
has_missing_valuesattribute
metadataattribute
metadata: dict[str, Any] = field(default_factory=dict)
is_temporalproperty
is_temporal: bool

Returns bool

is_orderedproperty
is_ordered: bool

Returns bool

is_multivariateproperty
is_multivariate: bool

Returns bool

has_topologyproperty
has_topology: bool

Returns bool

has_hierarchyproperty
has_hierarchy: bool

Returns bool

to_dictmethod
to_dict() -> dict[str, Any]

Returns dict[str, Any]

Grouping

Grouping

Bases: str, Enum

Members

SINGLE_POPULATIONattribute
SINGLE_POPULATION = 'single_population'
MULTIPLE_ENTITIESattribute
MULTIPLE_ENTITIES = 'multiple_entities'
MULTIPLE_SEQUENCESattribute
MULTIPLE_SEQUENCES = 'multiple_sequences'

Modality

Modality

Bases: str, Enum

Members

NUMERICattribute
NUMERIC = 'numeric'
CATEGORICALattribute
CATEGORICAL = 'categorical'
TEXTattribute
MIXEDattribute

ObservationUnit

ObservationUnit

Bases: str, Enum

Members

SAMPLEattribute
TIMESTEPattribute
WINDOWattribute
SEQUENCEattribute
NODEattribute
EDGEattribute
GRAPHattribute

Ordering

Ordering

Bases: str, Enum

Members

UNORDEREDattribute
UNORDERED = 'unordered'
ORDEREDattribute
ORDERED = 'ordered'

Structure

Structure

Bases: str, Enum

Members

FLATattribute
NESTEDattribute
HIERARCHICALattribute
HIERARCHICAL = 'hierarchical'

TemporalSemantics

TemporalSemantics

Bases: str, Enum

Members

NONEattribute
EVENT_TIMEattribute
REGULAR_TIMEattribute
REGULAR_TIME = 'regular_time'
IRREGULAR_TIMEattribute
IRREGULAR_TIME = 'irregular_time'

Topology

Topology

Bases: str, Enum

Members

NONEattribute
GRAPH_EDGESattribute
GRAPH_EDGES = 'graph_edges'
SPATIAL_ADJACENCYattribute
SPATIAL_ADJACENCY = 'spatial_adjacency'