Code Monkey home page Code Monkey logo

r2seedo's Introduction

r2seedo

R2 See, Do - a journey in deep reinforcement learning.

Table of contents

Project Setup

0. Install hatch & hatch-conda

r2seedo uses hatch for project management. You'll need it installed (ideally in an isolated environment) before setting up r2seedo.

(optional) Install hatch-conda

r2seedo depends on gymnasium, which is best installed with conda / mamba, thus hatch-conda is also recommended.

# Update mamba
mamba update -n base mamba

# Update base environment packages 
mamba update -n base --all

# Install hatch & hatchling
mamba install -n base -c conda-forge hatch hatchling

# Install hatch-conda
mamba activate base && python -m pip install hatch-conda

1. Clone the r2seedo repository

git clone [email protected]:libertininick/r2seedo.git

2. Create the default (virtual) environment

hatch will install r2seedo in development mode along with its development dependencies inside of a virtual environment managed by hatch.

# Navigate to root project directory
cd r2seedo

# (optional) if using conda / mamba envs activate the base environment
mamba activate base

# Create default environment
hatch env create

Table of Contents

Create separate virtual environments for specific RL environments

  • RL environment packages are best installed in independent virtual environment
  • Each RL environment used in r2seedo has its own virtual environment configuration defined in pyproject.toml
  • An environment can be created using hatch env create <env name> :

NOTE: Make sure the base environment is activated before creating a new environment: mamba activate base

Environment Name Create
Atari gym-atari hatch env create gym-atari
Box2D gym-box2d hatch env create gym-box2d
Toy Text gym-toy_text hatch env create gym-toy_text

Table of Contents

Running Tests

Run tests and coverage report using hatch

hatch run default:test-cov

Table of Contents

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.