Code Monkey home page Code Monkey logo

rl's Introduction

  • ๐Ÿ‘‹ Hi there, I'm Viddesh

  • ๐Ÿ‘€ Iโ€™m interested in Python, Django, A.I
  • ๐ŸŒฑ Iโ€™m currently learning Django, A.I and everything
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate with other content creators
  • ๐Ÿฅ… 2024 Goals: Contribute more to Open Source projects
  • โšก Fun fact: I love to play Football

Languages and Tools:

Visual Studio Code

HTML5

CSS3

CSS3

CSS3

SQL

MySQL

MongoDB

GraphQL

GraphQL

Git

GitHub

Terminal

Bootstrap




โšก GitHub Stats codeSTACKr's GitHub Stats

rl's People

Contributors

ankita01k avatar viddesh1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

rl's Issues

Dump Q-learning policy in pickle file

After the agent learn the q-table policy should be dump in to pickle object file. So, that it is easy to un-pickle and render visualization of frozen lake environment.

Testing the Q-learning policy

  • Make environment of Frozen-lake_v1.
  • Read the pickle file.
  • Choose the maximum action form the Q-table
  • Start the episodes and render the UI.
  • Add necessary docstring and comments for code readibility.

Q-table in comments

Since, the learning of the machine learning model takes a significant time to compute. I will put the output in comments.

Add requirements.txt

Adding the requirements.txt file will be very help for installation of the necessary packages and any major dependencies for the project.

Requirement file should contain below packages one major dependencies of pygame:-

  • requirements.txt

numpy==1.23.5
gym==0.24.0
pygame==2.3.0

Create a function for taking action in the environment

Create a function which take the current state that agent is in. Based on the state an episilon-greedy policy to be used for taking random uniform action in the environment else action should be taken by agent by following a greedy policy of Q-table.

Bug: Unable to close the pygame in the last cell

The Problem is when we run the first cell and last cell of the Mini_Project.ipynb file. We are unable to close the pygame window.
As a result of which we have to forcefully kill the kernel and run again first and last cell.

How to resolve this issue?

  • Import pygame in the first cell like --> import pygame
  • Print the pygame version --> print("Pygame Version: ", pygame.version)
  • We would need to use pygame.quit() at the end of the line outside of the forloop in the last cell of Mini_Project.ipynb. For closing the pygame window as gym uses pygame as internal dependencies.

When Sending for Pull Request kindly tag this issue and checkmark all the checkbox. Thanks!

File Structure

Why not to have a file structure representing the file names and there information in the form of tree structure. It will provide more insights on how the file structure is created and why it is in that way. Also, Meta information of file may be helpful.

Create new .ipynb or .py file ?

Interactive python notebook (.ipynb) file need to be created so that we can test the code. As it provides more flexibility than that of simple python (.py) file.

If there is any need to create a python file we can create it and code can we maintain in the same file.

Update Readme.md file with Pygame dependencies

Previously the packages table for the project was like below:-

Library Version Description
Python ๐Ÿ 3.11.2 For development of RL mini project (.ipynb)
Numpy ๐Ÿƒ 1.23.5 For fast Numeric / Linear Algebra computation
Gym ๐Ÿ‹๏ธ 0.24.0 For using open AI gym environment of Frozen_Lake_v1

Updated table would look like below:-

Library Version Description
Python ๐Ÿ 3.11.2 For development of RL mini project (.ipynb)
Numpy ๐Ÿƒ 1.23.5 For fast numeric / linear algebra computation
Gym ๐Ÿ‹๏ธ 0.24.0 For using open AI gym environment of Frozen_Lake_v1
Pygame ๐ŸŽฎ 2.3.0 For rendering open AI gym environment of Frozen_Lake_v1

Go to Top Button

Create a "Go to Top Button" at the very end of the Readme.md file. So, that when the user read through the document in readme file from top to buttom. He or She does not have to scroll back to top again to read again etc.

Print Versions of the packages

Printing the version of the packages used will help in understanding which packages are used in the development of the code.

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.