Giter Club home page Giter Club logo

fmdp-visualizer's Introduction

FMDP-Visualizer

This is a tool based on Graphviz for graphically illustrating a Finite Markov Decision Process (FMDP).

This is a fork from https://github.com/rmattila/MDP-Explore The original project aimed at graphs of the Markov chain underlying the Markov Decision Process (MDP), and did not support action nodes.

I also created the fork to support Python 3 and above and provided some installation advice.

Aldebaro. March 2024

Dependencies

Requirements: graphviz and wxPython. You also need numpy and scipy.

Using Conda on Windows, one can create an environment with these dependencies by running conda create --name fmdp --file .\environments.txt on the project root folder and activate it by running conda activate fmdp.

Alternatively, one can also install the require packages in a conda environment using conda install graphviz python-graphviz wxpython numpy scipy. I recommend using Python 3.7.1.

Pedro, March 2024.

Usage

First, define the transition probabilities of the MDP in mdp.py along with the number of actions and the state labels. A variant of the standard machine replacement problem is provided as an example in the file.

To run the code, use pythonw main.py.

The states will be plotted along with the transitions. If Show probabilities is enabled, then the transition probabilities will be added as labels to the transitions. The thicknesses of the arrows is proportional to the transition probabilities. You can choose which action and time that should be used to evaluate the transition matrix.

The current plot is saved and can be found in the img/ folder.

Screenshot

MDP-Explore Screenshot MDP-Explore Screenshot

fmdp-visualizer's People

Contributors

rmattila avatar pedro-rendeiro avatar claudio966 avatar aldebaro avatar

Watchers

 avatar

Forkers

pedro-rendeiro

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.