Giter Site home page Giter Site logo

rapfff / jajapy Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 2.0 8.43 MB

Baum-Welch for all kind of Markov models

License: MIT License

Python 98.78% Raku 1.22%
baum-welch hidden-markov-model machine-learning markov-chain markov-decision-processes markov-model python storm model-checking

jajapy's Introduction


Pypi Python 3.6 PyPI - Wheel License

Introduction

jajapy is a python library implementing the Baum-Welch algorithm on various kinds of Markov models. jajapy generates models which are compatible with the Stormpy model checker. Thus, jajapycan be use as a learning extension to the Storm model checker.

Main features

jajapy provides:

Markov Model Learning Algorithm(s)
MC Baum-Welch for MCs
Alergia (ref)
MDP Baum-Welch for MDPs (ref)
Active Baum-Welch (ref)
IOAlergia (ref)
CTMC Baum-Welch for CTMCs
Baum-Welch for synchronous compositions of CTMCs
PCTMC Baum-Welch for PCTMCs (ref)
HMM Baum-Welch for HMMs (ref)
GoHMM Baum-Welch for GoHMMs (ref)

jajapy is compatible with Prism and Storm.

Installation

pip install jajapy

Requirements

Documentation

Available on readthedoc

Reference and citation

  • The extended version of the tool paper presented at QEST'23 is available here
  • If you use this tool in your research, please cite it

About the author

My website

jajapy's People

Contributors

daniel-runge avatar rapfff avatar

Stargazers

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

Watchers

 avatar  avatar

jajapy's Issues

No module named 'jajapy.hmm'

Hello Rapfff,

I am curious to use your tool jajapy. I installed it on my machine and I get the following error:

ModuleNotFoundError: No module named 'jajapy.hmm'

Do you have an idea of what could it be?

TypeError: MC_state() missing 1 required positional argument: 'nb_states'

Hello Rapfff,

I found another issue in the file demo.py at the moment of manually defining the Markov chain. The error is in the function modelMC_REBER line 5:

TypeError: MC_state() missing 1 required positional argument: 'nb_states'

From the description, nb_states: int number of states in which this state is

Let me know if you need further information.

RuntimeError

Thanks for updating the demo.py file! I am getting repeatedly the error below, is this normal? Maybe a simpler demo would work better?

    raise RuntimeError('''
RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.
Fatal Python error: init_import_size: Failed to import the site module
Python runtime state: initialized

PS: If I may, it would be helpful to add a short description of the demo (e.g., a drawing of the markov model, the input parameters, outputs, and interpretation). I could provide this if I manage to run successfully the demo :-)

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.