Coder Social home page Coder Social logo

pythongame-swingymonkey's Introduction

Running Instruction

This document will explain how to run this project in the following steps:

  1. Environment setting: please run all the commands under python 3 environment

  2. Default command:

python run.py

This will return all the scores in 400 epoches under the setting of SARSA with no modified epsilon and no gravity inference. The scores will store in the output .npy file as well as printing out in the terminal with average score at each epoch.

  1. More help on command line: run this command for more information on how to start the script:
python run.py -h
  1. Run actual algorithm with parameters:
python run.py -m <NAME_OF_METHOD> -e <EPSILON_MODIFIED> -g <GRAVITY_INFERENCE>
  1. Detailed explanation on parameters we need to input for evaluating the reinforcement learning:

    • NAME_OF_METHOD: pass in whether "SARSA" or "Q_Learning" (in exact words) to indicate which method we will use for this round.
    • EPSILON_MODIFIED: pass in whether "True" or "False" to indicate whether we are going to graduately decrease the influnce of epsilon in the policy.
    • GRAVITY_INFERECE: pass in whether "True" or "False" to indicate whether we are going to take gravity into account when learning the game.
  2. Example input:

python run.py -m Q_Learning -e True -g True

This will return all the scores in 400 epoches under the setting of modified epsilon Q_Learning with gravity inference. The scores will store in the output .npy file as well as printing out in the terminal with average score at each epoch.

pythongame-swingymonkey's People

Contributors

melodynymph avatar

Watchers

James Cloos 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.