Code Monkey home page Code Monkey logo

p3_collab_compet's Introduction

Project 3: Collaboration and Competition

Project Details

The observation space consists of 8 variables corresponding to the position and velocity of the ball and racket. Two continous actions are available, corresponding to movement toward (or away from) the net, and jumping.

In this environment, two agents control rackets to bounce a ball over a net. If an agent hits the ball over the net, it receives a reward of +0.1. If an agent lets a ball hit the ground or hits the ball out of bounds, it receives a reward of -0.01. Thus, the goal of each agent is to keep the ball in play. The environment is considered solved, when the average (over 100 episodes) of those scores is at least +0.5.

Getting Started

Here, I will provide instructions for installing dependencies or downloading need files for this project.

Activate the Environment

You will have to install PyTorch, the ML-Agents toolkit, and a few more Python packages required to complete the project. Follow the instructions in the DRLND GitHub repository to set up your Python environment

Download the Unity Environment

For this project, you will not need to install Unity- this is because the environment has already been built for you. You can download it from one of the links below. You need only select environment that matches your operating system;

Then, place the file in the p3_collab-compet/ folder in the DRLND GitHub repository, and unzip (or decompress) the file.

Instructions

To train the agents is pretty simple;

  • In the root directory, start the jupyter notebook from a terminal with the command $ jupyter notebook tennis.ipynb and change the kernal to drlnd
  • Run all the cells from the notebook

p3_collab_compet's People

Contributors

sudocorentin avatar

Watchers

 avatar

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.