GithubHelp home page GithubHelp logo

growneuralnets's Introduction

Growing Artificial Neural Networks for Control: the Role of Neuronal Diversity

This is the code for our paper submission to Gecco '24.

trajectories

Visualization the trajectories learned by our model (corresponding to the results presented in Figure 3 and Table 1 of our paper)

How to install

To install all required python packages you can create a new conda environment from the provided requirements file:

conda env create -f environment.yml

We ran our code on a Linux server with an NVIDIA RTX A6000 GPU.

How to run simulations

Under folder examples you can find scripts for reproducing the experiments and figures presented in the paper.

When running our model, the Neural Developmental Program (NDP), you have the option of activating intrinsic hidden states and/0r lateral inhibition.

Script examples/NDP/train.py contains code for training an agent in different locomotion tasks (ant, halfcheetah, double inverted pendulum and reacher) with three configurations of the NDP:

  • NDP: intrinsic hidden states are activated and inhibition is deactivated
  • NDP-vanilla: both intrinsic hidden states and inhibition are deactivated
  • NDP-inhib: intrinsic hidden states are deactivate and inhibition is activated

To train the Hypernet baseline you can run script examples/hypernet/train.py

How to visualize results

During training, data files will be saved under directory projects. A unique directory will be created for each experiment.

You can create visualizations for each project by calling the examples/NDP/post_process.py script, specifying the name of the project.

You can also monitor results during training using wandb. To do this, you need to change the log flag in the default_config.yaml file to 1.

growneuralnets's People

Contributors

eleninisioti 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.