python wrapper for DeepCL deep convolutional neural network library for OpenCL
Project description
DeepCL Python wrappers
Python wrapper for DeepCL
To install from pip
pip install DeepCL
related pypi page: https://pypi.python.org/pypi/DeepCL
How to use
See test_deepcl.py for an example of:
creating a network, with several layers
loading mnist data
training the network using a higher-level interface (NetLearner)
For examples of using lower-level entrypoints, see test_lowlevel.py:
creating layers directly
running epochs and forward/backprop directly
For example of using q-learning, see test_qlearning.py.
To build from source
Pre-requisites:
on Windows:
Python 2.7 or Python 3.4
A compiler:
Python 2.7 build: need Visual Studio 2008 for Python 2.7 from Microsoft
Python 3.4 build: need Visual Studio 2010, eg Visual C++ 2010 Express
on linux:
Python 2.7 or Python 3.4
g++, supporting c++0x, eg 4.4 or higher
To build:
cd python
python setup.py build_ext -i
Then, you can run from this directory, by making sure to add it to the path, eg:
PYTHONPATH=. python test_lowlevel.py /my/mnist/data/dir
To install:
cd python
python setup.py install
Notes on how the wrapper works
cDeepCL.pxd contains the definitions of the underlying DeepCL c++ libraries classes
PyDeepCL.pyx contains Cython wrapper classes around the underlying c++ classes
setup.py is a setup file for compiling the PyDeepCL.pyx Cython file
to run unit-tests
From the python directory:
nosetests -sv
Development builds
If you want to modify the sourcecode, you’ll need to re-run cython, so you’ll need cython:
pip install cython
If you want to update this readme, you might want to re-generate the README.rst, so you’ll need pypandoc:
pip install pypandoc
(note that pypandoc depends on pandoc)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for DeepCL-v5.9.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2206063ba21058576c486ee90321d95d1c1ec69d5edd79de960f158e2960e876 |
|
MD5 | d3863fd1b7c780da4bcdba110288f98d |
|
BLAKE2b-256 | 49d78fd5bc9eb7f4017576f0db2012a5f1bf7c9c44028a00561f5788aba51cc0 |
Hashes for DeepCL-v5.9.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | af1ef0bd62a821d3113451b3059343c5bba370d4d5de7617f19350e5dd79f12f |
|
MD5 | 6bb4e727019f814c2835e57c6799d157 |
|
BLAKE2b-256 | 36fa9eea6753730b21323ebf9efc2d7d13a22e350cd4bb082d86bfc03368cce9 |
Hashes for DeepCL-v5.9.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | db94b33b0dd3677365d03cc0afbcd1c6e4eb12f5d3010840d0260c11bfc85a65 |
|
MD5 | 527cb1be47bea24421acb1962ddc7fc4 |
|
BLAKE2b-256 | d68bfe1cf780d2e54cc7cdad59772fb0799e8d273de9043e23a1098e34593624 |
Hashes for DeepCL-v5.9.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | dba264733f8c56895621f22ddf6c71dc9874053dfcc6f4d0b564dac11d08f01f |
|
MD5 | 852f32d22185d4de11e702a6c449e7e2 |
|
BLAKE2b-256 | d12c72ecb33689ca82b64d5e599f303dda94db7f142b03c4dbe7ff3769559d15 |