# Code for NeurIPS 2021 submission: Emergent Communication under Varying Sizes and Connectivities

# Notes

- We are releasing the Dockerfile (with anonymized maintainer) that covers all the dependencies.

# Instruction

`1_generate_shapes.py`

Generates 128,000 image observations with corresponding instructions. Converts image observations to color-only and shape-only versions.

`2_create_datapoints.py`

Creates datapoints (32*320*3 arrays) based on the generated shapes.

`3_create_vecX_y.py`

Attach labels to the datapoints.

`4_create_X.py`

Attach instructions to the vector Xs.

`vae.py`

Train VAE to encode the image observations.

`multiagent_communication.py`

Train many-to-many communication networks.

`social_network_optimization.py`

Optiizes many-to-many communication.