Skip to main content

No-regret learning dynamics

Project description

noregret

No-regret learning dynamics

Scripts

Replicate the experiment of Leme, Piliouras, and Schneider (2025).

python scripts/leme-piliouras-schneider/main.py
python scripts/leme-piliouras-schneider/main2.py

Solve a problem in HW2 of CMU CSD's 15-888 (2025).

python scripts/15-888/from-15-888.py < path/to/15-888/hw2/cfr_files/rock_paper_superscissors.json > games/extensive-form/15-888/rock-paper-superscissors.json
python scripts/15-888/from-15-888.py < path/to/15-888/hw2/cfr_files/kuhn_poker.json > games/extensive-form/15-888/kuhn-poker.json
python scripts/15-888/from-15-888.py < path/to/15-888/hw2/cfr_files/leduc_poker.json > games/extensive-form/15-888/leduc-poker.json

python scripts/extensive-form-game-statistics.py \
    rock_paper_superscissors games/extensive-form/15-888/rock-paper-superscissors.json \
    kuhn_poker games/extensive-form/15-888/kuhn-poker.json \
    leduc_poker games/extensive-form/15-888/leduc-poker.json \
    > games/extensive-form/15-888/statistics.csv

python scripts/15-888/hw2/main.py

Run the BM-CFR experiment.

python scripts/from-open-spiel.py kuhn_poker | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/kuhn-poker.json
python scripts/from-open-spiel.py leduc_poker | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/leduc-poker.json
python scripts/from-open-spiel.py liars_dice | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/liars-dice.json
python scripts/from-open-spiel.py first_sealed_auction | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/first-sealed-auction.json
python scripts/from-open-spiel.py sheriff | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/sheriff.json
python scripts/from-open-spiel.py tiny_bridge_2p | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/2p-tiny-bridge.json
python scripts/from-open-spiel.py tiny_hanabi | python scripts/compress-extensive-form-game.py > games/extensive-form/open-spiel/tiny-hanabi.json

python scripts/extensive-form-game-statistics.py \
    kuhn_poker games/extensive-form/open-spiel/kuhn-poker.json \
    leduc_poker games/extensive-form/open-spiel/leduc-poker.json \
    liars_dice games/extensive-form/open-spiel/liars-dice.json \
    first_sealed_auction games/extensive-form/open-spiel/first-sealed-auction.json \
    sheriff games/extensive-form/open-spiel/sheriff.json \
    tiny_bridge_2p games/extensive-form/open-spiel/2p-tiny-bridge.json \
    tiny_hanabi games/extensive-form/open-spiel/tiny-hanabi.json \
    > games/extensive-form/open-spiel/statistics.csv

python scripts/counterfactual-swap-regret-minimization/main.py > scripts/counterfactual-swap-regret-minimization/average-strategies.jsonl
python scripts/counterfactual-swap-regret-minimization/main2.py < scripts/counterfactual-swap-regret-minimization/average-strategies.jsonl

Run the symmetrized game experiment.

python scripts/symmetrized-game/main.py
python scripts/symmetrized-game/main2.py
python scripts/symmetrized-game/main3.py

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

noregret-0.0.0.dev2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noregret-0.0.0.dev2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file noregret-0.0.0.dev2.tar.gz.

File metadata

  • Download URL: noregret-0.0.0.dev2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for noregret-0.0.0.dev2.tar.gz
Algorithm Hash digest
SHA256 07734ee5479fd98a0fc3a66c144a6d9103726c7fd0bfdd7ef4d98d18be5ae1bf
MD5 abe677ded17d5f6311b91e35b55f5d4f
BLAKE2b-256 618ab1d77bdd08c55d65712929b27270bee018e5aa2bf28d869a72e062a796b5

See more details on using hashes here.

File details

Details for the file noregret-0.0.0.dev2-py3-none-any.whl.

File metadata

  • Download URL: noregret-0.0.0.dev2-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for noregret-0.0.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 77873d6a2df066e60a625ba7c5789c6b1f475606786314fab4e75c3d994f8faa
MD5 ca9f9a3b09eba4e0761b890468eb9711
BLAKE2b-256 052f528a73f2461fddef51a775a97f201c651dfd185eb612b20d01910b43335c

See more details on using hashes here.

Supported by

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