Code Monkey home page Code Monkey logo

bayesnas's Introduction

BayesNAS

code for ICML paper BayesNAS: A Bayesian Approach for Neural Architecture Search

Description

The algorithm is a one-shot based Bayesian approach for neural architecutre search. It is capable of finding efficient network architecture for image classification task. This approach is also very flexible in the sense of finding good trade-off between classification accuracy and model complexity.

RNN

Besides convolutional neural networks, we also provide theoretical analysis about sparse prior and Hessian computation for recurrent layers in RNN.

Search

To run the searching algorithm, please go to search and run main.py with

python main.py --lambda_child your_lambda_child --lambda_origin your_lambda_origin

A folder is expected to appear in the same directory containing all parameters of our algorithm wrt. to the normal cell and reduct cell.

Cell Evaluation

In the search, please load the corresponding gamma_norm.pkl and gamma_reduct.pkl for cell selection and building. Then replace the NormalCell and ReductCell in cell.py in CNN manually.

(Unfortunately we don't support automation of this process at the moment.)

Pre-trained

We also provide our best pre-trained model in pre_trained for different lambdas. You can find them according to the corresponding lambda.

bayesnas's People

Contributors

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