Prior Knowledge
This module contains implementation of a sax.core.causal_process_discovery.prior_knowledge.PriorKnowledge
class. This class should be instantiated with the event log data
passed to causal discovery algorithm in case we want this algorithm to take into account specific business-process constraints (such as known time precedence between activities in the process)
Module contents
- class sax.core.causal_process_discovery.prior_knowledge.PriorKnowledge(data: DataFrame, threshold=0.5)
Bases:
object
Prior knowledge representation for a particular event log. This object should be created and passed to the causal dependency discovery algorithm in case the user intends to run the algorithm with prior knowledge. The rules for creation of prior knowledge matrix are described here https://lingam.readthedocs.io/en/stable/tutorial/pk_direct.html
- getPriorKnowledge()
Get the prior knowledge matrix embedded in this object
Returns
- np.ndarray
Prior knowledge matrix
- make_prior_knowledge_graph()
# Assisted by WCA for GP # Latest GenAI contribution: granite-20B-code-instruct-v2 model Creates a graphviz.Digraph object representing the prior knowledge embedded in this object.
Parameters
None
Returns
- graphviz.Digraph
Graphviz Digraph object representing the prior knowledge