temporal
module wittgenstein_episodic_memory.temporal
Classes
-
TemporalTimelineTracker — Helper to detect temporal patterns like inactivity or high frequency interactions.
wittgenstein_episodic_memory.temporal.TemporalTimelineTracker
class TemporalTimelineTracker()
Helper to detect temporal patterns like inactivity or high frequency interactions.
Methods
-
get_inactive_duration_days — Get the number of days since the last activity.
-
detect_high_frequency_bursts — Returns True if there is a burst of interactions within a given window.
wittgenstein_episodic_memory.temporal.TemporalTimelineTracker.get_inactive_duration_days
staticmethod TemporalTimelineTracker.get_inactive_duration_days(episodes: List[Episode]) → int
Get the number of days since the last activity.
wittgenstein_episodic_memory.temporal.TemporalTimelineTracker.detect_high_frequency_bursts
staticmethod TemporalTimelineTracker.detect_high_frequency_bursts(episodes: List[Episode], window_hours: int = 24, count_threshold: int = 5) → bool
Returns True if there is a burst of interactions within a given window.