Git Product home page Git Product logo

tudo1403 / tf-moenas Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 124 KB

[ICONIP 2021] "Training-Free Multi-Objective Evolutionary Neural Architecture Search via Neural Tangent Kernel and Number of Linear Regions" by Tu Do, Ngoc Hoang Luong

License: MIT License

Python 100.00%
neural-architecture-search evolutionary-computation multi-objective-optimization nas-bench-201 nas-bench-101 pytorch nsga-ii deep-learning automl

tf-moenas's Introduction

Training-Free Multi-Objective Evolutionary Neural Architecture Search via Neural Tangent Kernel and Number of Linear Regions

MIT licensed

Ngoc Hoang Luong, Tu Do

In ICONIP 2021.

Installation

  • Clone this repo:
git clone https://github.com/MinhTuDo/TF-MOENAS.git
cd TF-MOENAS
  • Install dependencies:
pip install -r requirements.txt

Usage

0. Prepare the NAS Benchmarks

  • Follow the instructions here to install benchmark files for NAS-Bench-101.
  • Follow the instructions here to install benchmark files for NAS-Bench-201.
  • Optional: To evaluate IGD on the optimal front during a NAS run, for NAS-Bench-101, you need to download the pre-computed benchmark query data here and put it in the data folder.
  • Remember to properly set the benchmark paths in config files, default data path is ~/.torch.

1. Search

# Baseline MOENAS
python search.py -cfg config/baseline_moenas-101.yml --n_evals 5000 --pop_size 50 --loops_if_rand 30 -sw --use_archive

# Training-free MOENAS
python search.py -cfg config/tf_moenas-101.yml --n_evals 5000 --pop_size 50 --loops_if_rand 30 -sw --use_archive
# Baseline MOENAS
python search.py -cfg config/baseline_moenas-201.yml --n_evals 3000 --pop_size 50 --loops_if_rand 30 -sw --use_archive

# Training-free MOENAS
python search.py -cfg config/tf_moenas-201.yml --n_evals 3000 --pop_size 50 --loops_if_rand 30 -sw --use_archive

To evaluate IGD score on pre-computed optimal front during the search, simply provide --eval_igd flag.

For customized search, additional configurations can be modified through yaml config files in config folder.

Acknowledgement

Code inspired from:

tf-moenas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

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.