Skip to content

1st Place Reinforcement Learning Competition - CEIA RL Course 2021

Notifications You must be signed in to change notification settings

eduagarcia/teampequi-rl-ceia-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pequi - Reinforcement Learning Competition - CEIA 2021 (1st Place)

Members:
@eduagarcia
@thiagohenrique1
@Werikcyano

Competition Envoriment: https://github.com/bryanoliveira/soccer-twos-env
Starter Code: https://github.com/dlb-rl/rl-tournament-starter
Solution Presentation (Portuguese): https://youtu.be/8C91NqZV4yk?t=7456
Solution Presentation Slides: https://docs.google.com/presentation/d/1X9TG1GYlHuVzvuVGsUv8bPfMYdgxGImLq0JfLakHxwc/edit?usp=sharing

Solutions:

Goiaba: ppo_deepmind_selfplay.py (0.47 Win-Rate vs Baseline)
GoiabaV2: ppo_deepmind_selfplay_v2_1.py (0.6 Win-Rate vs Baseline)
Goiabão: ppo_deepmind_selfplay_v4.py (0.81 Win-Rate vs Baseline)

Requirements

Usage

  • Clone this repository
  • Install the requirements: pip install -r requirements.txt
  • Run python example_random.py to watch a random agent play the game
  • Run python example_ray_team_vs_random.py to train team vs team against a random agent using Ray RLLib

You may also run this environment on Colab.

Tournament submission

To submit an agent for the competition you must follow this instructions:

  • Implement a class that inherits from soccer_twos.AgentInterface and implements an act method
  • Fill in your agent's information in the README.md file (agent name, authors & emails, and description)
  • Test your agent module as described in the next section
  • Compress your agent's module folder as .zip and e-mail it to bryanlmoliveira@gmail.com.

See example_player_agent/ or example_team_agent/ module for reference.

Testing/Evaluating

Use the environment's rollout tool to test your module before submission:

python -m soccer_twos.watch -m example_player_agent

You may also run your agent against our pre-trained baseline (download). Extract the ceia_baseline_agent folder to this project's folder and run:

python -m soccer_twos.watch -m1 example_player_agent -m2 ceia_baseline_agent

About

1st Place Reinforcement Learning Competition - CEIA RL Course 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •