Skip to main content

An environment for reproducing dominance hierarchies in RL agents

Project description

Chicken Coop

Supports Python 3.11.

Usage instructions:

# Set up virtualenv if needed:
python -m venv chicken-coop-env
source chicken-coop-env/bin/activate

# Install Chicken Coop:
pip install chicken-coop

# Run tests:
pytest

# Basic run:
python -m chicken_coop run

# Main run used in the paper:
python -m chicken_coop run --moniker paper-run --use-tune --n-tune-samples 300

# Transplant a visitor population into a resident population:
python -m chicken_coop transplant --moniker paper-transplant \
  --visitor-trek ~/.chicken_coop/<YOUR_PREVIOUS_RUN>

# Ablate opponent perception accuracy:
python -m chicken_coop run --moniker paper-ablate-observation --use-tune --n-tune-samples 10 \
  --observation-accuracy 0.0 \
  --observation-accuracy 0.1 \
  --observation-accuracy 0.2 \
  --observation-accuracy 0.3 \
  --observation-accuracy 0.4 \
  --observation-accuracy 0.5 \
  --observation-accuracy 0.6 \
  --observation-accuracy 0.7 \
  --observation-accuracy 0.8 \
  --observation-accuracy 0.9 \
  --observation-accuracy 1.0


# Investigate non-linearity:
python -m chicken_coop run --moniker paper-cycles --use-tune --n-tune-samples 30 --n-agents 12 \
  --learning-rate 3e-05

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chicken_coop-0.0.1.tar.gz (48.2 kB view details)

Uploaded Source

Built Distribution

chicken_coop-0.0.1-py2.py3-none-any.whl (62.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file chicken_coop-0.0.1.tar.gz.

File metadata

  • Download URL: chicken_coop-0.0.1.tar.gz
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for chicken_coop-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e9dda4e431347c578541dee6627ce47105e871ebccbfd2a13589e0f585477b11
MD5 0a1d6152047f8ef5fc4c62c8a6d3441a
BLAKE2b-256 92d436b9cd991a4c3d07d0b2b84aea656eeb09f9f95ef42d13e8239656aa3092

See more details on using hashes here.

File details

Details for the file chicken_coop-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for chicken_coop-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 706a1d6609d9a5d65ed46c4d67b4e2ff8981c26cbb37856b8fe8daf9ff8b3581
MD5 dea618db78179a5aff6e53615f064e1f
BLAKE2b-256 f5a1b1afaa153a8fa96502b3a56fa19403671fb55d6338025146f9edf8115487

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page