To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

The parameters of the Alpha Miner in CLI

Hi all,

I am working on a project (I already explained it on a different discussion) and I need to obtain a Petrinet that I will later convert to an UML. In that moment, I was using the ILP miner, but I realized that some relations went missing. This is not acceptable for me, as this project is expected to run on critical environments. 

Due to this, I tried using other ProM plugins and I found out that the Alpha Miner in version Alpha+ generates acceptable values. However, I need to run this from the CLI, using the following function:

alpha_miner(XLog, XEventClassifier, AlphaMinerParameters) -> (Petrinet, Marking)

I assume that I need this variant because I need to specify the version of the Alpha Miner. However, I do not know how I have to create neither the XEventClassifier nor the AlphaMinerParameters especifying the version.

I would be really grateful if someone could point to me which are the paths to the classes to use and how to create the instances, in order for the Alpha Miner to use them.

Comments

  • Hi,

    The typical way to get the classifier is to select the first classifier from the log, if it has any, and to use the default classifier otherwise, like follows:
    classifier = (log.getClassifiers().isEmpty() ? new XEventAndClassifier(new XEventNameClassifier(), new XEventLifeTransClassifier()) : log.getClassifiers().get(0));
    The parameters can be instantiated as follows (for the classic version of the Alpha miner):
    parameters = new org.processmining.alphaminer.parameters.AlphaMinerParameters(org.processmining.alphaminer.parameters.AlphaVersion.CLASSIC);
    You can then call the Alpha miner and get the results as follows:
    res = alpha_miner(log, classifier, parameters); 
    petriNet = res[0];
    marking = res[1];

    Kind regards,
    Eric.






  • Thanks, but in the alphaminer parameters, I need to use the Alpha+ version, as the classic one does not generate acceptable values for me. Instead of CLASSIC, what value should I write so the Alpha+ version is utilized?
  • Please have a look at https://svn.win.tue.nl/trac/prom/browser/Packages/AlphaMiner/Trunk/src/org/processmining/alphaminer/parameters/, which contains the possible parameter classes for the Alpha miner. My guess is that you then need to instantiate the AlphaPlusMinerClass.


  • Or use PLUS instead of CLASSIC, see the AlphaVersion class.
  • Thanks, it worked.
Sign In or Register to comment.