Skip to content
/ dp Public
forked from nicholas-leonard/dp

A deep learning library for streamlining research and development using the Torch7 distribution.

License

Notifications You must be signed in to change notification settings

5urprise/dp

 
 

Repository files navigation

dp Package Reference Manual#

dp is a deep learning library designed for streamlining research and development using the Torch7 distribution. It emphasizes flexibility through the elegant use of object-oriented design patterns.

During my time in the LISA Lab as an apprentice of Yoshua Bengio and Aaron Courville, I was inspired by pylearn2 and Theano to build a framework better suited to my needs and style.

Among other things, this package includes :

  • common datasets like MNIST, CIFAR-10 and CIFAR-100, preprocessing like Zero-Component Analysis whitening, Global Contrast Normalization, Lecun's Local Contrast Normalization, and facilities for interfacing your own.
  • a high-level framework that abstracts away common usage patterns of the nn and torch7 package such as loading datasets and early stopping.
  • hyperparameter optimization facilities for sampling and running experiments from the command-line or prior hyper-parameter distributions.
  • facilites for storing and analysing hyperpameters and results using a PostgreSQL database backend which facilitates distributing experiments over different machines.
## Tutorials and Examples ## In order to help you get up and running we provide a quick [neural network tutorial](doc/neuralnetworktutorial.md) which explains step-by-step the contents of this [example script](examples/neuralnetwork_tutorial.lua). For a more flexible option that allows input from the command-line specifying different datasources and preprocesses, using dropout, running the code on a GPU/CPU, please consult this [script](examples/neuralnetwork.lua).

A Facial Keypoints tutorial involving the case study of a Kaggle Challenge is also available. It provides an overview of the steps required for extending and using dp in the context of the challenge. And even provides the script so that you can generate your own Kaggle submissions.

## dp Packages ## ## Install ## To use this library, install it globally via luarocks: ```shell $> sudo luarocks install dp ``` or install it locally: ```shell $> luarocks install dp --local ``` or clone and make it: ```shell $> git clone git@github.com:nicholas-leonard/dp.git $> cd dp $> sudo luarocks make dp-scm-1.rockspec ```

For CUDA:

$> sudo luarocks install cunnx

For LAPACK (then recompile torch):

$> sudo apt-get install liblapack-dev

For PostgresSQL:

$> sudo apt-get install libpq-dev
$> sudo luarocks install luasql-postgres PGSQL_INCDIR=/usr/include/postgresql
$> sudo apt-get install liblapack-dev

Contributions

We appreciate issues and pull requests of all kind.

About

A deep learning library for streamlining research and development using the Torch7 distribution.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%