Coder Social home page Coder Social logo

betterinitatlimiteddepth_2019's Introduction

Code: At limited depth, can we initialise better? An empirical study on ReLU networks with dropout

This repository provides the code to reproduce the results in the paper: "At limited depth, can we initialise better? An empirical study on ReLU networks with dropout."

The code was written by Arnu Pretorius, Elan Van Biljon, Benji Van Niekerk, Ryan Eloff, Matthew Reynard.

Steps for running experiments (GPU required):

Below are the instructions to run experiments on a machine

Docker experiment instructions

(See below for instructions on running experiments in Conda environment)

Step 1. Install Docker and nvidia-docker, if not installed already.

Step 2. Obtain the research environment image from Docker Hub.

docker pull reloff/noisy-relu-shift

(Or, alternatively, build the image in environments/docker)

Step 3. Clone the research code repository.

git clone https://github.com/arnupretorius/noisy_relu_shift.git

Step 4. Generate experimental results (Warning: this may take several hours to run.)

Run experiments in a Docker container with ./run_experiments --docker [options] (use --help flag for more information)

Usage:

./run_experiments.sh \
    --docker \
    --hp=<hyperparams_file> \
    --exp=<experiments_file> \
    --act=<act> \
    --dataset=<dataset> \
    --epochs=<epochs>

where <hyperparams_file> is the hyperparams specification file, <experiments_file> is the experiments specification file, <act> is the activation function, <dataset> is the name of the dataset and <epochs> is the number of training epochs. The --docker flag specifies that experiments will be run in a Docker container with the research image pulled/built in Step 2. For now we set these to hyperparams_30.txt jobs_per_pc/no_gauss/experiment_1.txt relu cifar10 500, i.e. run the following:

./run_experiments.sh --docker --hp=hyperparams_30.txt --exp=jobs_per_pc/no_gauss/experiment_1.txt --act=relu --dataset=cifar10 --epochs=500

Conda experiment instructions

Step 1. Install Anaconda

Step 2. Create the environment with the following command: conda env create -f environments/conda/env.yml

Step 3. Activate the environment with the following command: source activate torch

Step 4. Generate experimental results (Warning: this may take several hours to run.)

Run experiments in current Conda environment with ./run_experiments [options] (use --help flag for more information)

Usage:

./run_experiments.sh \
    --hp=<hyperparams_file> \
    --exp=<experiments_file> \
    --act=<act> \
    --dataset=<dataset> \
    --epochs=<epochs>

where <hyperparams_file> is the hyperparams specification file, <experiments_file> is the experiments specification file, <act> is the activation function, <dataset> is the name of the dataset and <epochs> is the number of training epochs. For now we set these to hyperparams_30.txt jobs_per_pc/no_gauss/experiment_1.txt relu cifar10 500, i.e. run the following:

./run_experiments.sh --hp=hyperparams_30.txt --exp=jobs_per_pc/no_gauss/experiment_1.txt --act=relu --dataset=cifar10 --epochs=500

betterinitatlimiteddepth_2019's People

Contributors

arnupretorius avatar

Watchers

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