Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhoudaxia233/pyalpha
A process mining tool written in Python3
https://github.com/zhoudaxia233/pyalpha
alpha-miner data-science petri-net process-mining
Last synced: 3 months ago
JSON representation
A process mining tool written in Python3
- Host: GitHub
- URL: https://github.com/zhoudaxia233/pyalpha
- Owner: zhoudaxia233
- License: mit
- Created: 2018-05-27T10:36:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-13T00:21:25.000Z (about 6 years ago)
- Last Synced: 2024-07-25T17:15:30.547Z (4 months ago)
- Topics: alpha-miner, data-science, petri-net, process-mining
- Language: Python
- Size: 17.6 KB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyalpha
A process mining tool written in Python3.It generates a Petri net using the [Alpha Algorithm](https://en.wikipedia.org/wiki/Alpha_algorithm) from event logs.
---
## Requirements
1. `Python3`
2. `pip`
3. `graphviz-2.38` (Only this version has been tested, other versions may also work).On Ubuntu, simply type `sudo apt install graphviz`, and it will work!
On Windows, you may need this link [Graphviz 2.38 Stable Release](https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi). Also, you need to add **graphviz** to your SYSTEM PATH. Just add the **/bin/** folder is enough.
---
## Installation
Install `pyalpha`:
```bash
sudo pip3 install pyalpha
```---
## Developing
Install `pyalpha` for development:
```bash
python3 setup.py develop
```---
## Usage
### How to use pyalpha?
```bash
pyalpha name-of-your-file-which-contains-event-logs.txt # e.g. tests/test0.txt
```
By default, it generates a dot file, a png file shows the Petri Net and a txt file describing the footprint.### How to run unit tests?
e.g. If you want to run unit tests of `alpha_test.py`, just type the command below:
```bash
python3 -m unittest tests.alpha_test
```### How can I use my custom event logs?
Please take a look at `.txt` files in folder `tests/`. Just follow the same style.