├── .gitignore ├── README.md ├── algorithms ├── __init__.py ├── baseAlgorithm.py ├── basePolicy.py ├── dqn │ ├── dqn_trainer.py │ └── policy.py └── egt │ ├── egt_trainer.py │ └── policy.py ├── configs ├── __init__.py └── config.py ├── envs ├── __init__.py ├── env_wrappers.py └── matrix_dilemma │ ├── __init__.py │ ├── _md_utils │ ├── core.py │ ├── lattice_env.py │ ├── scenario.py │ └── utils.py │ ├── lattice_combine │ └── lattice_combine.py │ ├── lattice_combine_v0.py │ ├── lattice_egt │ └── lattice_egt.py │ ├── lattice_egt_v0.py │ ├── lattice_rl │ └── lattice_rl.py │ └── lattice_rl_v0.py ├── runner ├── combine │ ├── base_runner.py │ └── lattice_runner.py ├── egt │ ├── base_runner.py │ └── lattice_runner.py └── rl │ ├── separated │ ├── base_runner.py │ └── lattice_runner.py │ └── shared │ ├── base_runner.py │ └── lattice_runner.py ├── scripts ├── __init__.py ├── train │ ├── __init__.py │ └── train_lattice.py └── train_pd_scripts │ ├── eval_lattice_rl.sh │ ├── train_lattice_egt.sh │ └── train_lattice_rl.sh ├── setup.py ├── utils ├── __init__.py ├── callback.py ├── segment_tree.py ├── separated_buffer.py ├── shared_buffer.py ├── simple_buffer.py └── util.py └── visualization └── plot_result.ipynb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/README.md -------------------------------------------------------------------------------- /algorithms/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /algorithms/baseAlgorithm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/baseAlgorithm.py -------------------------------------------------------------------------------- /algorithms/basePolicy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/basePolicy.py -------------------------------------------------------------------------------- /algorithms/dqn/dqn_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/dqn/dqn_trainer.py -------------------------------------------------------------------------------- /algorithms/dqn/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/dqn/policy.py -------------------------------------------------------------------------------- /algorithms/egt/egt_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/egt/egt_trainer.py -------------------------------------------------------------------------------- /algorithms/egt/policy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/algorithms/egt/policy.py -------------------------------------------------------------------------------- /configs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /configs/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/configs/config.py -------------------------------------------------------------------------------- /envs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /envs/env_wrappers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/env_wrappers.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/__init__.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/_md_utils/core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/_md_utils/core.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/_md_utils/lattice_env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/_md_utils/lattice_env.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/_md_utils/scenario.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/_md_utils/scenario.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/_md_utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/_md_utils/utils.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_combine/lattice_combine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_combine/lattice_combine.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_combine_v0.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_combine_v0.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_egt/lattice_egt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_egt/lattice_egt.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_egt_v0.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_egt_v0.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_rl/lattice_rl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_rl/lattice_rl.py -------------------------------------------------------------------------------- /envs/matrix_dilemma/lattice_rl_v0.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/envs/matrix_dilemma/lattice_rl_v0.py -------------------------------------------------------------------------------- /runner/combine/base_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/combine/base_runner.py -------------------------------------------------------------------------------- /runner/combine/lattice_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/combine/lattice_runner.py -------------------------------------------------------------------------------- /runner/egt/base_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/egt/base_runner.py -------------------------------------------------------------------------------- /runner/egt/lattice_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/egt/lattice_runner.py -------------------------------------------------------------------------------- /runner/rl/separated/base_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/rl/separated/base_runner.py -------------------------------------------------------------------------------- /runner/rl/separated/lattice_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/rl/separated/lattice_runner.py -------------------------------------------------------------------------------- /runner/rl/shared/base_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/rl/shared/base_runner.py -------------------------------------------------------------------------------- /runner/rl/shared/lattice_runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/runner/rl/shared/lattice_runner.py -------------------------------------------------------------------------------- /scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/train/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/train/train_lattice.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/scripts/train/train_lattice.py -------------------------------------------------------------------------------- /scripts/train_pd_scripts/eval_lattice_rl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/scripts/train_pd_scripts/eval_lattice_rl.sh -------------------------------------------------------------------------------- /scripts/train_pd_scripts/train_lattice_egt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/scripts/train_pd_scripts/train_lattice_egt.sh -------------------------------------------------------------------------------- /scripts/train_pd_scripts/train_lattice_rl.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/scripts/train_pd_scripts/train_lattice_rl.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/setup.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /utils/callback.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/callback.py -------------------------------------------------------------------------------- /utils/segment_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/segment_tree.py -------------------------------------------------------------------------------- /utils/separated_buffer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/separated_buffer.py -------------------------------------------------------------------------------- /utils/shared_buffer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/shared_buffer.py -------------------------------------------------------------------------------- /utils/simple_buffer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/simple_buffer.py -------------------------------------------------------------------------------- /utils/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/utils/util.py -------------------------------------------------------------------------------- /visualization/plot_result.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/itstyren/InteractionMARL-Coop/HEAD/visualization/plot_result.ipynb --------------------------------------------------------------------------------