Outdated: retentioneering 3.x

Version 3.x of retentioneering is outdated. The code on this page will not work with the current version of the library. The current documentation is at https://retentioneering.com/docs.

Transition Matrix#

Eventstream#

Eventstream.transition_matrix(weight_col=None, norm_type=None)[source]#

Get transition weights as a matrix for each unique pair of events. The calculation logic is the same that is used for edge weights calculation of transition graph.

Parameters:
weight_colstr, optional

Weighting column for the transition weights calculation. See transition graph user guide for the details.

norm_type{“full”, “node”, None}, default None

Normalization type. See transition graph user guide for the details.

Returns:
pd.DataFrame

Transition matrix. (i, j)-th matrix value relates to the weight of i → j transition.

Notes

See transition graph user guide for the details.