Skip to main content
Rust4PM

variants

process_mining::discovery::object_centric::variants

Functions in this Module(1)

get_variants_of_object_type

discovery::object_centric::variantsSource

Get all activity-trace variants for objects of the given object type, with their occurrence counts

Each entry is a tuple (activity_trace, count), where activity_trace is the sequence of event types connected to an object (ordered by event timestamp), and count is the number of objects of the requested type that share that exact trace. Sorted by count descending, ties broken by the activity trace.

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)
String
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.get_variants_of_object_type(ocel, 'order')