Code Monkey home page Code Monkey logo

apm_bpi_2020's Introduction

BPI data challenge 2020

Table of contents

Getting Started

This project contains the technical part of Predicting Rejected Declarations in the Travel Management System: BPI data challenge 2020

Requirements

  • Python 3.9
  • pandas
  • sklearn
  • numpy
  • matplotlib
  • plotly
  • pm4py
  • seaborn
  • tabulate

Running the Code

These steps will run the full data-preparation, model building, prediction generations.

  1. Install the dependencies:

    pip install -r requirments.txt

    Note: The scripts have been developed and tested with Python 3.9

    Note 2: If using ARM32 or ARM64 machine and an error is encountered installing pm4py, follow pm4py install instructions here.

  2. Once all dependencies are installed, we can run the data preperation python file (default length 6 with complex encoding). The outputs are saved in training_data/encodings directory.

    python3 src/data_preparation.py

    Expected Outcome -

    train test and validation split times are - 2018-09-17 11:34:42 , 2018-11-08 15:42:36 
    train, val and test count
    4020 861 861
    preparing training data for prefix length 6
    preparing test data for prefix length 6
    preparing val data for prefix length 6
    Done!
    
  3. The below code will run our machine learning model (Default Decision Trees) on generated encodings. The outputs are saved in results/ directory.

    python3 src/model_building_and_evaluation.py

    Expected Outcome -

Model Encoding Trace Length F-score Precision Recall Accuracy
Decision Tree (Test) complex 6 0.544791 0.263736 0.421053 0.651568
Decision Tree (Val) complex 6 0.510082 0.307167 0.357143 0.576074
Baseline complex 6 0.481256 0.26484 0.230159 0.587689

Authors

Adam Broniewski GitHub | LinkedIn | Website

Himanshu Choudhary

Tejaswini Dhupad GitHub | LinkedIn

License

APM_BPI_2020 is open source software [licensed as MIT][license].

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.