Giter Club home page Giter Club logo

communicating_agents's Introduction

Communicating Agents

Re-Implementation of "Operationally meaningful representations of physical systems in neural networks"

This repo is our implementation of the NN architecture proposed in H. Poulsen Nautrup, T. Metger, R. Iten, S. Jerbi, L.M. Trenkwalder, H.Wilming, H.J. Briegel, and R. Renner. "Operationally meaningful representations of physical systems in neural networks" (2020). Note that the original implementation can already be found on github, we implemented this one from scratch and chose different approaches e.g. with regards to the training data generation or the model implementation.

Project structure

.
├── README.md                                           --> this file
├── comm_agents                                         --> package 
│   ├── __init__.py
│   ├── data                                            --> data set related code
│   │   ├── __init__.py
│   │   ├── data_generator.py
│   │   ├── data_handler.py
│   │   ├── optimal_answers.py
│   │   └── reference_experiments.py
│   ├── models                                          --> model implementations and trainng
│   │   ├── __init__.py
│   │   ├── model_multi_enc.py
│   │   ├── model_single_enc.py
│   │   ├── trainig_multi_enc.py
│   │   └── trainig_single_enc.py
│   └── utils.py
├── config.json                                         --> run configurations
├── data                                                --> data files 
│   └── training
├── lightning_logs                                      --> model logs (e.g. for tensorboard)
├── models                                              --> model directory
├── notebooks                                           --> for visualizations
│   ├── 01_reference_experiment_visualization.ipynb
│   ├── 02_generated_data_exploration.ipynb
│   ├── 03_single_enc_analysis-1.ipynb
│   └── 04_multi_enc_analysis.ipynb
└── setup.py

Installation

Assuming you have a fresh virtual environment wiht python 3.7 or higher, run the following code in the root of this project.

pip install -e .

Run the proejct

Data set generation (with virt env activated):

python comm_agents/data/data_generator.py

Note that this one runs quite a while and it makes sense to use a beefy machine (many cpus) and specify the number of jobs to run in the config.json (e.g. 48).

Model training:

python comm_agents/models/trainig_single_enc.py

communicating_agents's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.