Giter Site home page Giter Site logo

rylinnm / nas-with-gas Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 847 KB

A collection of genetically-inspired algorithms that solve a nerual architecture search problem.

Python 100.00%
evolutionary-algorithms genetic-algorithm nerual-architecture-search

nas-with-gas's Introduction

Neural Architecture Search using Genetic Algorithm and Evolution Strategy

Overview

This repository contains the implementation and evaluation of two algorithms: a Genetic Algorithm (GA) and an Evolution Strategy (ES), designed for Neural Architecture Search (NAS). The objective is to explore and identify high-performing neural architectures on the NAS-bench-101 benchmark. The project leverages IOHexperimenter for benchmark generation and IOHanalyzer for statistical analysis and visualization.

Algorithms

  1. Genetic Algorithm (GA): Implemented in Genetic Algorithm.py, this script applies a genetic algorithm to the NAS problem. It includes functions for initialization, crossover, mutation, and various selection strategies (tournament, rank, and roulette wheel).

  2. Evolution Strategy (ES): Located in Evolution Strategy.py, this script implements an evolution strategy approach for the NAS task. It provides mechanisms for parent selection, offspring generation, mutation, and survival selection.

Requirements

  • Python 3.x
  • nasbench
  • nas_ioh
  • absl
  • numpy

Ensure these libraries are installed. You can install them using pip:

pip install nasbench nas_ioh absl-py numpy

Running the Code

To execute the algorithms, run the respective Python scripts from the command line:

For the Genetic Algorithm:

python Genetic Algorithm.py

For the Evolution Strategy:

python Evolution Strategy.py

Each script will perform multiple runs of the algorithm and output the best-found architecture and its performance.

Evaluation

The performance of the algorithms is evaluated based on the average best-found fitness values and AUC values over 20 independent runs, each capped at 5,000 function evaluations.

nas-with-gas's People

Contributors

rylinnm avatar

Stargazers

 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.