Giter Club home page Giter Club logo

markov-decision-process's Introduction

markov-decision-process

Implemented an MDP solver in c++.

Run ./planner.sh MDP_name to get the value function corresponding to each state.

The MDP format is as follows:

The input to your planner will be an MDP, provided as a text file. The format of the file is be as follows.

Number of states

Number of actions

Reward function

Transition function

Discount factor

The number of states S and the number of actions A will be integers greater than 0 and less than 100. Assume that the states are numbered 0, 1, ..., S - 1, and the actions numbered 0, 1, ..., A - 1. The reward function will be provided over SA lines, each line containing S entries. Each entry corresponds to R(s, a, s'), wherein state s, action a, and state s' are being iterated in sequence from 0 to S - 1, 0 to A - 1, and 0 to S - 1, respectively. A similar scheme is adopted for the transition function T. Each reward will lie between -1 and 1 (both included). The discount factor is a real number between 0 (included) and 1 (exluded).

OUTPUT

Given an MDP, the planner computes the optimal value function V* and an optimal policy pi*. Its output format is as follows:

V*(0) pi*(0) V*(1) pi*(1) . . . V*(S - 1) pi*(S - 1)

This was my CS 747 Assignment 2 at IIT Bombay

markov-decision-process's People

Contributors

mehtanihar avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

prasuchit

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.