Giter Club home page Giter Club logo

sanas's Introduction

SANAS: Stochastic Adaptive Neural Architecture Search

Implementation of SANAS (see paper on arXiv ), a model able to dynamically adapt the architecture of a Deep Neural Network at test time for efficient sequence classification.

Installation:

  • Create an environment with Python 3.6
  • pip install -r requirements.txt

Speech commands dataset:

  • Download the Speech command v0.01 archive.
  • Extract the dataset and give the extracted folder path as root_path argument (defaults to ./data/speech_commands_v0.01).
  • Implementation of the Speech Commands data processing is based on honk, credits goes to the authors!
  • Speech Commands dataset paper on arXiv.

Exemple run :

Without mongo connection:

  • python main.py with adam speech_commands gru kwscnn static=True use_mongo=False ex_path=<path_to_save_location>/runs
  • If no ex_path is specified, logs and models will be saved under ./runs

With mongo connection:

  • Create json file containing the required connection informations:
{
 "user": "Me",
 "passwd": "MySecurePassword",
 "host": "localhost",
 "port": "27017",
 "db": "sanas",
 "collection": "runs"
}
  • python main.py with adam speech_commands gru kwscnn static=True use_mongo=False mongo_config_path=<path_to_config>/mongo_config.json
  • mongo_config_path defaults to ./resources/mongo_credentials.json

Without Visdom :

  • python main.py with adam speech_commands gru kwscnn static=True use_visdom=False

With Visdom :

  • Visdom will connect to localhost:8097 by default. To specify the server, create a config file:
{
 "server": "http://localhost",
 "port": 8097
}
  • python main.py with adam speech_commands gru kwscnn static=True visdom_config_path=<path_to_config>/vis_config.json

Data :

Implementing a new dataset:

The __get_item__(self, idx) of a dataset should return a tuple (x,y) with:

  • x of size seq_len x feature_dims. For example, feature_dims for traditional images is (C,H,W)
  • y of size seq_len.

It is possible to use the PadCollate class in the dataloader to pad each sequence to the length of the longest one in the sampled batch.

sanas's People

Contributors

tomveniat avatar

Watchers

James Cloos avatar paper2code - bot 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.