lifecycles.algorithms.event

event(lc, target, direction=None)

Compute the event type and typicality of a target set in a lifecycle.

Parameters:
  • lc – lifecycle object

  • target – name of the target set

  • direction – temporal direction in which the flow is to be analyzed

Returns:

a dictionary containing the event type and scores

Example:

>>> import lifecycles as lcs
>>> # ... create a lc object here ...
>>> event = lcs.event(lc, "1_0", "+")
>>> event.keys()
>>> # dict_keys(['+', '-'])