Quality Dimension Indicators¶
process_performance_indicators.indicators.quality.instances
¶
outcome_unit_count_for_single_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The outcome units associated with an activity instance, measured as the latest recorded value among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/quality/instances.py
outcome_unit_count_for_sum_of_all_events_of_activity_instances(event_log: pd.DataFrame, instance_id: str) -> float | None
¶
The outcome units associated with an activity instance, measured as the sum of all values among the events of the activity instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
Source code in process_performance_indicators/indicators/quality/instances.py
successful_outcome_unit_count(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> int
¶
The outcome units associated with an activity instance, after deducting those that were unsuccessfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/instances.py
successful_outcome_unit_percentage(event_log: pd.DataFrame, instance_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The percentage of outcome units associated with an activity instance that were successfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
instance_id
|
str
|
The instance id. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/instances.py
process_performance_indicators.indicators.quality.activities
¶
activity_instance_count_by_human_resource(event_log: pd.DataFrame, activity_name: str, human_resource_name: str) -> int
¶
The number of times that a specific activity is instantiated by a specific human resource in the event log.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
human_resource_name
|
str
|
The name of the human resource. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
client_count_and_total_cost_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the number of distinct clients associated with cases where the activity is instantiated, and the total cost associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
human_resource_count(event_log: pd.DataFrame, activity_name: str) -> int
¶
The number of human resources that are involved in the execution of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
outcome_unit_count(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The outcome units associated with all instantiations of the activity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit calculations. "sum": Considers the sum of all events of activity instances for outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
rework_count(event_log: pd.DataFrame, activity_name: str) -> int
¶
The number of times that the activity has been instantiated again, after its first instantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
rework_count_by_value(event_log: pd.DataFrame, activity_name: str, value: float) -> float
¶
The number of times that the activity has been instantiated again, after it has been instantiated a certain number of times, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
rework_percentage(event_log: pd.DataFrame, activity_name: str) -> float
¶
The percentage of times that the activity has been instantiated again, after its first instantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
rework_percentage_by_value(event_log: pd.DataFrame, activity_name: str, value: float) -> float
¶
The percentage of times that the activity has been instantiated again, after it has been instantiated a certain number of times, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
rework_time(event_log: pd.DataFrame, activity_name: str) -> pd.Timedelta
¶
The total elapsed time for all times that the activity has been instantiated again, after its first instantiation, in any case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
successful_outcome_unit_count(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> int
¶
The outcome units associated with all instantiations of the activity, after deducting those that were unsuccessfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
successful_outcome_unit_percentage(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The percentage of outcome units associated with all instantiations of the activity that were successfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
total_cost_and_client_count_ratio(event_log: pd.DataFrame, activity_name: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all instantiations of the activity, and the number of distinct clients associated with cases where the activity is instantiated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
activity_name
|
str
|
The name of the activity. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/activities.py
process_performance_indicators.indicators.quality.cases
¶
activity_instance_count_by_human_resource(event_log: pd.DataFrame, case_id: str, human_resource_name: str) -> int
¶
The number of times that any activity is instantiated by a specific human resource in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
human_resource_name
|
str
|
The name of the human resource. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
activity_instance_count_by_role(event_log: pd.DataFrame, case_id: str, role_name: str) -> int
¶
The number of times that any activity is instantiated by a specific role in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
role_name
|
str
|
The name of the role. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
automated_activity_count(event_log: pd.DataFrame, case_id: str, automated_activities: set[str]) -> int
¶
The number of automated activities that occur in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
automated_activity_instance_count(event_log: pd.DataFrame, case_id: str, automated_activities: set[str]) -> int
¶
The number of times that an automated activity is instantiated in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
desired_activity_count(event_log: pd.DataFrame, case_id: str, desired_activities: set[str]) -> int
¶
The number of instantiated activities whose occurence is desirable in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
human_resource_count(event_log: pd.DataFrame, case_id: str) -> int
¶
The number of human resources that are involved in the execution of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
non_automated_activity_count(event_log: pd.DataFrame, case_id: str, automated_activities: set[str]) -> int
¶
The number of non-automated activities that occur in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
non_automated_activity_instance_count(event_log: pd.DataFrame, case_id: str, automated_activities: set[str]) -> int
¶
The number of times that an non-automated activity is instantiated in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
outcome_unit_count(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The outcome units associated with all instantiations of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit calculations. "sum": Considers the sum of all events of activity instances for outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
overall_quality(event_log: pd.DataFrame, case_id: str) -> float
¶
The overall quality associated with the outcome of the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
repeatability(event_log: pd.DataFrame, case_id: str) -> float
¶
The inverted ratio between the number of activities that occur in the case, and the number of times that an activity has been instantiated in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_count(event_log: pd.DataFrame, case_id: str) -> int
¶
The number of times that any activity has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_count_by_value(event_log: pd.DataFrame, case_id: str, value: float) -> int
¶
The number of times that the activity has been instantiated again, after it has been instantiated a certain number of times, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_of_activities_subset(event_log: pd.DataFrame, case_id: str, activities_subset: set[str]) -> int
¶
The number of times that any activity belonging to a subset of activities has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
activities_subset
|
set[str]
|
The subset of activities. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_percentage(event_log: pd.DataFrame, case_id: str) -> float
¶
The percentage of times that any activity has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_percentage_by_value(event_log: pd.DataFrame, case_id: str, value: float) -> float
¶
The percentage of times that any activity has been instantiated again, after it has been instantiated a certain number of times, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
rework_time(event_log: pd.DataFrame, case_id: str) -> pd.Timedelta
¶
The total elapsed time for all times that any activity has been instantiated again, after its first instantiation, in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
successful_outcome_unit_count(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> int
¶
The outcome units associated with all activity instances of the case, after deducting those that were unsuccessfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
successful_outcome_unit_percentage(event_log: pd.DataFrame, case_id: str, aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The percentage of outcome units associated with all activity instances of the case that were successfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
unwanted_activity_count(event_log: pd.DataFrame, case_id: str, unwanted_activities: set[str]) -> int
¶
The number of unwanted activities that occur in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
unwanted_activity_instance_count(event_log: pd.DataFrame, case_id: str, unwanted_activities: set[str]) -> int
¶
The number of times that an unwanted activity is instantiated in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
unwanted_activity_instance_percentage(event_log: pd.DataFrame, case_id: str, unwanted_activities: set[str]) -> float
¶
The percentage of times that an unwanted activity is instantiated in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
unwanted_activity_percentage(event_log: pd.DataFrame, case_id: str, unwanted_activities: set[str]) -> float
¶
The percentage of unwanted activities that occur in the case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_id
|
str
|
The case ID. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/cases.py
process_performance_indicators.indicators.quality.groups
¶
activity_instance_count_by_human_resource(event_log: pd.DataFrame, case_ids: list[str] | set[str], human_resource_name: str) -> int
¶
The number of times that any activity is instantiated by a specific human resource in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
human_resource_name
|
str
|
The name of the human resource. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
activity_instance_count_by_role(event_log: pd.DataFrame, case_ids: list[str] | set[str], role_name: str) -> int
¶
The number of times that any activity is instantiated by a specific role in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
role_name
|
str
|
The name of the role. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
automated_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> int
¶
The number of automated activities that occur in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
automated_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> int
¶
The number of times that an automated activity is instantiated in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_and_client_count_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The ratio between the number of cases belonging to the group of cases, and the number of distinct clients associated with cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_where_activity_after_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, end_time: pd.Timestamp) -> int
¶
The number of cases belonging to the group of cases where a certain activity has occurred after a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
end_time
|
Timestamp
|
The end time stamp. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_where_activity_before_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, start_time: pd.Timestamp) -> int
¶
The number of cases belonging to the group of cases where a certain activity has occurred before a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
start_time
|
Timestamp
|
The start time stamp. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_where_activity_during_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, start_time: pd.Timestamp, end_time: pd.Timestamp) -> int
¶
The number of cases belonging to the group of cases where a certain activity has occurred within a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
start_time
|
Timestamp
|
The start time. |
required |
end_time
|
Timestamp
|
The end time. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_where_end_activity_is_a(event_log: pd.DataFrame, case_ids: list[str] | set[str], a_activity_name: str) -> int
¶
The number of cases belonging to the group of cases where a specific activity is the last instantiated one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
a_activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_where_start_activity_is_a(event_log: pd.DataFrame, case_ids: list[str] | set[str], a_activity_name: str) -> int
¶
The number of cases belonging to the group of cases where a specific activity is the first instantiated one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
a_activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_count_with_rework(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of cases belonging to the group of cases where there has been rework.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_where_activity_after_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, end_time: pd.Timestamp) -> float
¶
The percentage of cases belonging to the group of cases where a certain activity has occurred after a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
end_time
|
Timestamp
|
The end time. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_where_activity_before_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, start_time: pd.Timestamp) -> float
¶
The percentage of cases belonging to the group of cases where a certain activity has occurred before a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
start_time
|
Timestamp
|
The start time. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_where_activity_during_time_frame(event_log: pd.DataFrame, case_ids: list[str] | set[str], activity_name: str, start_time: pd.Timestamp, end_time: pd.Timestamp) -> float
¶
The percentage of cases belonging to the group of cases where a certain activity has occurred within a specific time frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activity_name
|
str
|
The name of the activity. |
required |
start_time
|
Timestamp
|
The start time. |
required |
end_time
|
Timestamp
|
The end time. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_where_end_activity_is_a(event_log: pd.DataFrame, case_ids: list[str] | set[str], a_activity_name: str) -> float
¶
The percentage of cases belonging to the group of cases where a specific activity is the last instantiated one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
a_activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_where_start_activity_is_a(event_log: pd.DataFrame, case_ids: list[str] | set[str], a_activity_name: str) -> float
¶
The percentage of cases belonging to the group of cases where a specific activity is the first instantiated one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
a_activity_name
|
str
|
The name of the activity. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_with_missed_deadline(event_log: pd.DataFrame, case_ids: list[str] | set[str], deadline: pd.Timestamp) -> float
¶
The percentage of cases belonging to the group of cases whose latest event occurs after a given deadline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
deadline
|
Timestamp
|
The deadline time stamp. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
case_percentage_with_rework(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The percentage of cases belonging to the group of cases where there has been rework.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
client_count_and_total_cost_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the number of distinct clients associated with cases in the group of cases, and the total cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
desired_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], desired_activities: set[str]) -> int
¶
The number of instantiated activities whose occurence is desirable in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_activity_instance_count_by_human_resource(event_log: pd.DataFrame, case_ids: list[str] | set[str], human_resource_name: str) -> float
¶
The expected number of times that any activity is instantiated by a specific human resource in a case belonging to the group of cases
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
human_resource_name
|
str
|
The name of the human resource. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_activity_instance_count_by_role(event_log: pd.DataFrame, case_ids: list[str] | set[str], role_name: str) -> int | float
¶
The expected number of times that any activity is instantiated by a specific role in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
role_name
|
str
|
The name of the role. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_automated_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> float
¶
The expected number of automated activities that occur in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_automated_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> float
¶
The expected number of times that an automated activity is instantiated in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_client_count_and_total_cost_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the number of distinct clients associated with cases in the group of cases, and the total cost associated with all activity instances of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_desired_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], desired_activities: set[str]) -> float
¶
The expected number of instantiated activities whose occurrence is desirable in a case belonging to the groupd of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
desired_activities
|
set[str]
|
The set of desired activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_human_resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int | float
¶
The expected number of human resources that are involved in the execution of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_non_automated_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> float
¶
The expected number of non-automated activities that occur in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_non_automated_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> float
¶
The expected number of times that an non-automated activity is instantiated in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_outcome_unit_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected outcome units associated with all activity instances of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_overall_quality(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The overall quality associated with the outcome of a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_repeatability(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected inverted ratio between the number of activities that occur in a case belonging to the group of cases, and the number of times that an activity has been instantiated in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int | float
¶
The expected number of times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_count_by_value(event_log: pd.DataFrame, case_ids: list[str] | set[str], value: float) -> float
¶
The expected number of times that the activity has been instantiated again, after it has been instantiated a certain number of times, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_of_activities_subset(event_log: pd.DataFrame, case_ids: list[str] | set[str], activities_subset: set[str]) -> float
¶
The expected number of times that any activity belonging to a subset of activities has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The expected percentage of times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_percentage_by_value(event_log: pd.DataFrame, case_ids: list[str] | set[str], value: float) -> float
¶
The expected percentage of times that any activity has been instantiated again, after it has been instantiated a certain number of times, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_rework_time(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> pd.Timedelta
¶
The expected total elapsed time for all times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_successful_outcome_unit_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> int | float
¶
The expected outcome units associated with all activity instances of a case belonging to the group of cases, after deducting those that were unsuccessfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_successful_outcome_unit_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected percentage of outcome units associated with all activity instances of a case belonging to the group of cases that were successfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_total_cost_and_client_count_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The expected ratio between the total cost associated with all activity instances of the group of cases, and the number of distinct clients associated with cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_unwanted_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> int
¶
The expected number of unwanted activities that occur in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_unwanted_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> float
¶
The expected number of times that an unwanted activity is instantiated in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_unwanted_activity_instance_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> float
¶
The expected percentage of times that an unwanted activity is instantiated in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
expected_unwanted_activity_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> float
¶
The expected percentage of unwanted activities that occur in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
human_resource_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of human resources that are involved in the execution of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
non_automated_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> int
¶
The number of non-automated activities that occur in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
non_automated_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], automated_activities: set[str]) -> int
¶
The number of times that an non-automated activity is instantiated in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
automated_activities
|
set[str]
|
The set of automated activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
outcome_unit_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The outcome units associated with all instantiations of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit calculations. "sum": Considers the sum of all events of activity instances for outcome unit calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
repeatability(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The inverted ratio between the number of activities that occur in the group of cases, and the number of times that an activity has been instantiated in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_count(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> int
¶
The number of times that any activity has been instantiated again, after its first instantiation, in a case belonging to the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_count_by_value(event_log: pd.DataFrame, case_ids: list[str] | set[str], value: float) -> int
¶
The number of times that the activity has been instantiated again, after it has been instantiated a certain number of times, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_of_activities_subset(event_log: pd.DataFrame, case_ids: list[str] | set[str], activities_subset: set[str]) -> int
¶
The number of times that any activity belonging to a subset of activities has been instantiated again, after its first instantiation, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
activities_subset
|
set[str]
|
The subset of activities. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> float
¶
The percentage of times that any activity has been instantiated again, after its first instantiation, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_percentage_by_value(event_log: pd.DataFrame, case_ids: list[str] | set[str], value: float) -> float
¶
The percentage of times that any activity has been instantiated again, after it has been instantiated a certain number of times, in every case of the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
value
|
float
|
The certain number of times that the activity has been instantiated. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
rework_time(event_log: pd.DataFrame, case_ids: list[str] | set[str]) -> pd.Timedelta
¶
The total elapsed time for all times that any activity has been instantiated again, after its first instantiation, in every case of group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
successful_outcome_unit_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> int
¶
The outcome units associated with all activity instances of the group of cases, after deducting those that were unsuccessfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
successful_outcome_unit_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The percentage of outcome units associated with all activity instances of the group of cases that were successfully completed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for outcome unit count calculations. "sum": Considers the sum of all events of activity instances for outcome unit count calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
total_cost_and_client_count_ratio(event_log: pd.DataFrame, case_ids: list[str] | set[str], aggregation_mode: Literal['sgl', 'sum']) -> float
¶
The ratio between the total cost associated with all activity instances of the group of cases, and the number of distinct clients associated with cases in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
aggregation_mode
|
Literal['sgl', 'sum']
|
The aggregation mode. "sgl": Considers single events of activity instances for cost calculations. "sum": Considers the sum of all events of activity instances for cost calculations. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
unwanted_activity_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> int
¶
The number of unwanted activities that occur in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
unwanted_activity_instance_count(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> int
¶
The number of times that an unwanted activity is instantiated in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
unwanted_activity_instance_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> float
¶
The percentage of times that an unwanted activity is instantiated in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |
Source code in process_performance_indicators/indicators/quality/groups.py
unwanted_activity_percentage(event_log: pd.DataFrame, case_ids: list[str] | set[str], unwanted_activities: set[str]) -> float
¶
The percentage of unwanted activities that occur in the group of cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_log
|
DataFrame
|
The event log. |
required |
case_ids
|
list[str] | set[str]
|
The case IDs. |
required |
unwanted_activities
|
set[str]
|
The set of unwanted activities names. |
required |