bupaverse / pm4py

R Interface between bupaR and the PM4Py Process Mining library
https://bupaverse.github.io/pm4py/
GNU General Public License v3.0
16 stars 2 forks source link

Process discovery errors #9

Open Erinaceida opened 3 years ago

Erinaceida commented 3 years ago

Hi,

When attempting to run process discovery algorithms "alpha miner" or "inductive miner", either on my data or using the dataset "patients" and following the example from https://bupar.net/alpha_miner.html (and respective inductive miner site) I run into errors:

Alpha miner

`library(bupaR)
library(pm4py)
library(petrinetR)
patients_completes <- patients %>% filter_lifecycle("complete")

discovery_alpha(patients_completes) -> PN
PN$petrinet %>% render_PN()` 

Gives an error message: "Error: Can't subset columns that don't exist. x Column from doesn't exist. Run rlang::last_error() to see where the error occurred."

Furthermore, the output of PN %>% str is different for me: image

Inductive miner

library(bupaR)
library(pm4py)
library(petrinetR)
patients_completes <- patients %>% filter_lifecycle("complete")

discovery_inductive(patients_completes, variant = variant_inductive_only_dfg()) -> PN
PN$petrinet %>% render_PN()

Produces this: image

And the output of PN %>% stris also different image

Heuristic miner

Cannot be installed: image

I'm new to process mining and got a little experience with R in general. May I ask for help on how I can get around this?

thanks!

Erinaceida commented 3 years ago

The same issues persist on R version 3.6.3

fmannhardt commented 3 years ago

This is likely an issue with the pm4py bridge package. I will have a look and sorry for the long response time on this.