Git Product home page Git Product logo

mdp-representation's Introduction

MDP REPRESENTATION

AIM:

The aim of this MDP is to model the decision-making process of a person while coding, considering two levels of concentration - full concentration and half concentration, and to maximize productivity

PROBLEM STATEMENT:

Problem Description

In this scenario ,The team wants to win the football tournament,they has two choice,one is move right and reach the final win the cupand another one is move left ,get knocked from tournament.

State Space

Knocked out ,Semi's ,Final.

Sample State

Semi's.

Action Space

Right , Left

Sample Action

Right(1) and Left(0).

Reward Function

Right= 1,Left= 0

Graphical Representation

WhatsApp Image 2024-02-23 at 09 41 04_3a10ebf9

PYTHON REPRESENTATION:

mdp = {
    "Final": {
         0 : [(0.7, "Semi's", 0, False),(0.3, "Final", 1, True)],
        1 : [(0.8, "Final", 1, True),(0.2, "Semi's", 0, False)]
    },
    "Semi's": {
        0 : [(0.8, "Knocked out", 0, False),(0.2, "Semi's", 0, False)],
        1 : [(0.9, "Final", 1, True),(0.1, "Semi's", 0, False)]
    },
    "Knocked out": {
        0 : [(0.8, "Knocked out", 0, False),(0.2, "Semi's", 0, False)],
        1 : [(0.7, "Semi's`", 0, False),(0.3, "Knocked out", 0.0, False)]
    }
}

OUTPUT:

image

RESULT:

The result of solving this MDP would be an optimal policy that tells the person which action to take in each state to maximize their productivity while coding.

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.