Coder Social home page Coder Social logo

dqn_framework_rl-game's Introduction

DQN Framework for Web-Based Game Automation

Overview

This project develops a customizable Deep Q-Network (DQN) framework for automating web-based games using reinforcement learning. The framework is built with PyTorch and uses Selenium for real-time game data extraction for web games. The primary application is the Chrome Dino game, serving as a baseline model. The framework is tested with multiple open ai gym environemtns to ensure compatibility and extendability.

Installation

  1. Clone the repository: git clone https://github.com/prabhath-r/DQN_Framework_RL-Game
  2. Install dependencies: pip install -r requirements.txt
  3. Run the main script: python main.py --game_env [game_name]

Code Structure

  • dqn_agent.py: Implements the DQN agent, capable of decision-making and learning.
  • environment.py: Manages the interaction between the DQN agent and the game.
  • model.py: Defines the neural network architecture for the DQN agent.
  • config.py: Contains hyperparameter settings for the DQN agent.
  • train_utils.py: Contains helper functions to dynamically save and load the previous checkpoints
  • main.py: The main executable script for training the agent.

Usage

  • Training the Agent: Execute main.py with the desired game environment.
  • Modifying Hyperparameters: Adjust settings in config.py for custom training scenarios.
  • Environment Adaptation: Use environment.py to interface with new or existing game environments.

Key Features

  • Customizable DQN Agent: Implements state-of-the-art decision-making and learning capabilities.
  • Dynamic Environment Management: Seamlessly integrates with various web-based game environments.
  • Flexible Neural Network Architecture: Tailors to specific game dynamics, enhancing learning efficiency.
  • Comprehensive Training Suite: Includes tools and scripts for effective training and performance evaluation.

Documentation

References

dqn_framework_rl-game's People

Contributors

prabhath-r avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

vinaygvelly

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.