Skip to main content

Pre-trained deep neural networks

Project description

[This fork of George Dahl’s gdbn merely exists to make it available as a setuptools package on PyPI. The original version can be downloaded from]

This package contains python code for pre-trained deep neural networks (sometimes called deep belief networks in an abuse of terminology that I too have been guilty of). RBM pre-training is supported and backpropagation. There are a handful of possible unit types. For training, minibatched stochastic gradient descent is implemented. This initial release has essentially no documentation other than what exists in the code itself (which is very little), but it is small enough so hopefully someone familiar with the algorithms and with python could use it. Of course such a person could probably write their own software.

This initial release only has the barest essentials of features. My internal version has more features, but some of them have not been published yet and thus have been stripped away from the release version. After all the features I have implelmented in my internal code have been made public, I plan on doing a slightly better release, perhaps even with some documentation.

Dependencies gnumpy ( and one of cudamat ( or npmat (, a non-gpu cudamat stand-in.

Running the Example (

Download the gzipped data from and unzip it into the same folder as all of the code (or change the line f = num.load(“mnist.npz”) in Then you should be able to run the example with $ python assuming you have obtained all the dependencies for

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gdbn-0.1.tar.gz (10.8 kB) Copy SHA256 hash SHA256 Source None Jan 19, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page