pm4py.objects.heuristics_net package

Submodules

pm4py.objects.heuristics_net.defaults module

pm4py.objects.heuristics_net.edge module

class pm4py.objects.heuristics_net.edge.Edge(start_node, end_node, dependency_value, dfg_value, repr_value, label='', repr_color='#000000', edge_type='frequency', net_name='')[source]

Bases: object

get_color()[source]

Gets the color to use for the representation

get_font_color()[source]

Gets the font color to use for the representation

get_penwidth(default)[source]

Gets the pen width to use for the representation

Parameters

default – Default value

pm4py.objects.heuristics_net.net module

pm4py.objects.heuristics_net.node module

class pm4py.objects.heuristics_net.node.Node(heuristics_net, node_name, node_occ, is_start_node=False, is_end_node=False, default_edges_color='#000000', node_type='frequency', net_name='', nodes_dictionary=None)[source]

Bases: object

add_input_connection(other_node, dependency_value, dfg_value, repr_color=None, repr_value=None)[source]

Adds an input connection to another node

Parameters
  • other_node – Other node

  • dependency_value – Dependency value

  • dfg_value – DFG value

  • repr_color – Color associated to the edge

  • repr_value – Value associated to the edge (if None, dfg_value is used)

add_output_connection(other_node, dependency_value, dfg_value, repr_color=None, repr_value=None)[source]

Adds an output connection to another node

Parameters
  • other_node – Other node

  • dependency_value – Dependency value

  • dfg_value – DFG value

  • repr_color – Color associated to the edge

  • repr_value – Value associated to the edge (if None, dfg_value is used)

calculate_and_measure_in(and_measure_thresh='and_measure_thresh')[source]

Calculate AND measure for input relations (as couples)

Parameters

and_measure_thresh – AND measure threshold

calculate_and_measure_out(and_measure_thresh='and_measure_thresh')[source]

Calculate AND measure for output relations (as couples)

Parameters

and_measure_thresh – AND measure threshold

calculate_loops_length_two(dfg_matrix, freq_triples_matrix, loops_length_two_thresh=0.5)[source]

Calculate loops of length two

Parameters
  • dfg_matrix – DFG matrix

  • freq_triples_matrix – Matrix of triples

  • loops_length_two_thresh – Loops length two threshold

get_fill_color(default)[source]

Gets the fill color for the representation

Parameters

default – Default value

get_font_color()[source]

Gets the font color for the representation

pm4py.objects.heuristics_net.obj module

class pm4py.objects.heuristics_net.obj.HeuristicsNet(frequency_dfg, activities=None, start_activities=None, end_activities=None, activities_occurrences=None, default_edges_color='#000000', performance_dfg=None, dfg_window_2=None, freq_triples=None, net_name='')[source]

Bases: object

calculate(dependency_thresh=0.5, and_measure_thresh=0.65, min_act_count=1, min_dfg_occurrences=1, dfg_pre_cleaning_noise_thresh=0.05, loops_length_two_thresh=0.5, parameters=None)[source]

Calculate the dependency matrix, populate the nodes

Parameters
  • dependency_thresh – (Optional) dependency threshold

  • and_measure_thresh – (Optional) AND measure threshold

  • min_act_count – (Optional) minimum number of occurrences of an activity

  • min_dfg_occurrences – (Optional) minimum dfg occurrences

  • dfg_pre_cleaning_noise_thresh – (Optional) DFG pre cleaning noise threshold

  • loops_length_two_thresh – (Optional) loops length two threshold

  • parameters – Other parameters of the algorithm

Deprecated since version 2.2.5: This will be removed in 3.0.0. please use the calculate method in algorithm package.

Module contents