get_top_n_variants
Get the
Each variant includes the activity sequence as names, its count, and percentage of total cases.
To get all variants, pass
To get only the most frequent variant, pass
Assumes
constructors.
n most frequent process variants, sorted by frequency (descending)Each variant includes the activity sequence as names, its count, and percentage of total cases.
To get all variants, pass
n = get_num_variants or use the get_variants function.To get only the most frequent variant, pass
n = 1.Assumes
projection.traces is sorted by descending frequency, as maintained by the providedconstructors.
Arguments
Returns
import r4pm
projection = r4pm.import_item('EventLogActivityProjection','path/to/file')
res = r4pm.bindings.get_top_n_variants(projection, 1)