Code for the paper Identifying Models With Brain Like Organizational Properties Using Cognitive Neural Architecture Search. See main.py for an example on how to use the evolutionary computation framework.
- The code requires the net2brain toolbox to be pre-installed.
- The code uses the NSD dataset through net2Brain, but can be adjusted to use any other fMRI dataset by modifying the paths in
evaluation.pyandmain.py - by deafult,
weights and biasesare used to monitor the architecture search process. Please pass your token as an arguemnt formain.pyto access the visualizations.
This repository contains only the necessary code to reproduce the experiments from the original paper. Including running the neural architecture search using the NSD data-set. The only exception is Effective Robustness calculation, which requires loading the models directly to the effective_robustness.py code in the following repo.
main.pyruns the evolutionary neural architecture search for a specified brain region. Requires specifying evolutionary search parameters such as mutation and cross-over rate, as well as population size.config.pydefines the search space of the neural networks to be considered (by deafult only Conv and Pool layers of specific kernel sizes).run_train_imagenet.slurmcreats different seeds that runtrain_imagenet.pywhich fintunes the neural networks using the imagenet data-set.main.ipynbloads the architectures identified by the CogNAS run and evalutes the brain similarity.
This project was funded by the HessianAI Connectom grant "Cognitive Neural Systems Architecture Search" (2050120009) led awarded to Dr. Sari Sadiya, Prof. Dr. Visavanathan Ramesh, Prof. Dr. Gemma Roig, and Prof. Dr. Christoph von der Malsburg.