Git Product home page Git Product logo

damaf / mcnh-ar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.33 MB

The NHMC-AR model is a Non-Homogeneous Markov Chain AutoRegressive model. It is designed to perform context-sensitive forecasting in time series that are associated with event sequences.

License: Other

Python 100.00%
em-algorithm forecasting inference markov-chain numerical-simulations stochastic-processes timeseries event-traces joint-modeling-timeseries-event-traces point-processes

mcnh-ar's Introduction

NHMC-AR model

Non-Homogeneous Markov Chain Auto-Regressive (NHMC-AR) model

This package contains the software programs designed for the NHMC-AR model. It includes a learning algorithm, a prediction function and a state inference algorithm.

This package has been implemented by Fatoumata Dama, PhD student (2019-2022), Nantes University, France.

Fatoumata Dama was supported by a PhD scholarship granted by the French Ministery for Higher Education, Research and Innovation. She worked under the supervision of Christine Sinoquet, Associate Professor, PhD supervisor, LS2N / UMR CNRS 6004 (Digital Science Institute of Nantes), Nantes University, France.

Requirements

  • Python 3.6
  • Numpy
  • Scipy
  • Scikit-learn
  • Pickle5
  • Futures
  • Numba 0.45
  • Tick

Anesthesia data

FC : heart frequency (HF)

PAS : systolic blood pressure (SBP)

PAM : average blood pressure (ABP)

PAD : diastolic blood pressure (DBP)

NHMC-AR model: contextual variables C1 - Application to anesthesia data

In this case, the contextual variables only take into account the latest occurrences of events, over all categories of events.

Launch model learning on anesthesia dataset

python3 -O mcnh-ar-C1_training.py train_data_dir nb_time_series model_output_dir ar_order nb_states

NHMC-AR model: contextual variables C2 - Application to anesthesia data

In this case, the contextual variables are extracted using the Hawkes point process framework. Thus, these variables take into account the whole history of past events.

Launch model learning on anesthesia dataset

python3 -O mcnh-ar-C2_training.py train_data_dir nb_time_series model_output_dir ar_order nb_states features_file

Definition of parameters

  • train_data_dir: "anesthesia_data" directory
  • nb_time_series: the number of training instances (between 1 and 500)
  • model_output_dir: the name of the directory in which model output is saved within a serialized file
  • ar_order: the order of the auto-regressive process (>= 0)
  • nb_states: the number of states to be considered (>= 2)
  • features_file: the file that contains the contextual variables C2 extracted based on the Hawkes process (to be loaded from directory "Point-process-models/tick-Hawkes-process/model_outputs/expKernel/5-event-types")

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.