GithubHelp home page GithubHelp logo

zhoudaxia233 / pyalpha Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 2.0 18 KB

A process mining tool written in Python3

License: MIT License

Python 100.00%
alpha-miner process-mining data-science petri-net

pyalpha's Introduction

pyalpha

A process mining tool written in Python3.

It generates a Petri net using the 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. Also, you need to add graphviz to your SYSTEM PATH. Just add the /bin/ folder is enough.


Installation

Install pyalpha:

sudo pip3 install pyalpha

Developing

Install pyalpha for development:

python3 setup.py develop

Usage

How to use pyalpha?

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:

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.

pyalpha's People

Contributors

zhoudaxia233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zergmk2 hyenial

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.