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.8.1-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0c96ab8e512189702cb2b7aa6cb533ea07c1aece2b32d6bdcfd51baf021ff4 |
|
MD5 | fc3674627afb59fd249a9e2eb71ccbf6 |
|
BLAKE2b-256 | dac658e8c10576ca41582d9921385708ac93763a5feb1a0f8d11a08bbfaeed32 |
Hashes for DeepCL-v5.8.1-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523db384d9a92411104a0a177b60ff269de4e3056ab24f909c990e2388b9e3a4 |
|
MD5 | e6a2150fd9bf8650fe87165a5ecd04ac |
|
BLAKE2b-256 | 9f519fba7e41f3f79a03985035d52b95852134c0b73e5babc5e2166f2f519015 |
Hashes for DeepCL-v5.8.1-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bd156cfdfe72ecee10eb67ddb6ee529984aab3dc776a061d4a4353170b9c115 |
|
MD5 | 1ca7ab5bbe42da15cd6ae8ce2268d29c |
|
BLAKE2b-256 | 344a7e76c8f8b72ef2300e6ebf27c445f436ab7c1ad17c0d20b506eaa20a77db |
Hashes for DeepCL-v5.8.1-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56afb666d8946677cbc6c08b4587eeb775140249b117a767e442c22c4bce74d6 |
|
MD5 | e90bd59ec490e1a78e3cbdd127288ed8 |
|
BLAKE2b-256 | fa1720872e4d0e8eedf2f573957724dc7c39cfb9748ef1cab0e95f95c9e1b580 |