cursus.processing.temporal.sequence_ordering_processor

Sequence Ordering Processor for Temporal Self-Attention Model

This module provides atomic sequence ordering for temporal sequences. Extracted from TSA preprocess_functions.py logic.

class SequenceOrderingProcessor(sort_field='orderDate', sort_order='ascending', validate_order=True)[source]

Bases: Processor

Orders sequences by timestamp or other criteria.

Extracted from TSA preprocess_functions.py sequence validation logic.

Parameters:
  • sort_field (str) – Field to sort by

  • sort_order (str) – ‘ascending’, ‘descending’

  • validate_order (bool) – Whether to validate ordering consistency

fit(data)[source]

No fitting required for ordering

process(input_data)[source]

Apply sequence ordering

get_config()[source]

Return processor configuration