lifecycles.algorithms.events_asur¶
- events_asur(lc: object, th: float = 0.5) dict¶
Compute the events in a lifecycle according to Asur et al. Return a dictionary of events of the form {event_type: [event1, event2, …]}
- Parameters:
lc – the lifecycle object
th – threshold for merge and split scores. Defaults to 0.5.
- Returns:
dictionary of events
- Reference:
Asur, S., Parthasarathy, S., Ucar, D.: An event-based framework for charac- terizing the evolutionary behavior of interaction graphs. ACM Transactions on Knowledge Discovery from Data (TKDD) 3(4), 1–36 (2009)
- Example:
>>> from lifecycles import Lifecycle >>> from lifecycles.algorithms.classic_match import events_asur >>> lc = Lifecycle() >>> # add some data and then... >>> events = events_asur(lc, 0.5)