GithubHelp home page GithubHelp logo

fanqino1 / competition_3v3snakes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jidiai/competition_3v3snakes

0.0 0.0 0.0 4.15 MB

License: MIT License

Python 30.21% CSS 0.04% JavaScript 68.83% HTML 0.92%

competition_3v3snakes's Introduction

Competition_3v3snakes

Environment

Competition_3v3snakes

Check details in Jidi Competition RLChina2021智能体竞赛


Dependency

You need to create competition environment.

conda create -n snake3v3 python=3.7.5

conda activate snake3v3

pip install -r requirements.txt


How to train rl-agent

python rl_trainer/main.py

By default-parameters, the total reward of training is shown below.

image

You can edit different parameters, for example

python rl_trainer/main.py --algo "bicnet" --epsilon 0.8

Baseline performance:

You can locally evaluation your model.

python evaluation_local.py --my_ai rl --opponent random

image


How to test submission

You can locally test your submission. At Jidi platform, we evaluate your submission as same as run_log.py

Once you run this file, you can locally check battle logs in the folder named "logs".

For example,

python run_log.py --my_ai "random" --opponent "rl"


Ready to submit

  1. Random policy --> agent/random/submission.py
  2. RL policy --> all files in agent/rl/

Watch reply locally

  1. Open reply/reply.html in any browser.
  2. Load a log.
  3. Reply and watch ^0^.

competition_3v3snakes's People

Contributors

jidiai avatar yutongamber avatar zbzhu99 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.