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-5.10.0-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb615590ae3490e87116b2c0d57729b15ebdaf7ef1c183a1f896d14a378f8c4 |
|
MD5 | 2a510f26d952665f3a29dff8afce41ca |
|
BLAKE2b-256 | 54ae92ca07a532b812ea9274841bfb41aeee8f69f916961762564571fb7a3677 |
Hashes for DeepCL-5.10.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9458898b1b4e3d2cf1b821b8d6aa7eec6a027b2fb2178ddaa4cba29fccd271ad |
|
MD5 | 9aa749ca7ade13bf9ca253c60ed76122 |
|
BLAKE2b-256 | 45c8d31d68438d9cc08339759ad87fe61ea781e62dd952d8629042345606f836 |
Hashes for DeepCL-5.10.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55dc3bb1bdd34e9e3251c377f6e019ee875681886679516f2cf5f3e9af10bb80 |
|
MD5 | 7a86efdbc262891734da82a92cf0d682 |
|
BLAKE2b-256 | 76fbcb4992eb6ed294f25331b619e3ef6396a798c8a5e59d872f168041280e99 |
Hashes for DeepCL-5.10.0-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8855121081de78d9a688f5a51f8d3e96e38d76615f42ec36b938249cc51611c6 |
|
MD5 | 6a56e8c4dc34e0b7fde811a3889376cb |
|
BLAKE2b-256 | cabb3d6ca15c3999cda19518b7fa788bd117976be2883615418956350450cc0f |
Hashes for DeepCL-5.10.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d69eda4ac0bae82634bf7a62987224097e337ee1f8d785df0853e0de6f76ef05 |
|
MD5 | 99b2044ec712a47bc2f296a9c409a10b |
|
BLAKE2b-256 | f6769988fb116937b6071d5ac849bcc3928deb674473fbea2c893d1047be080e |
Hashes for DeepCL-5.10.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33d0887fffbee7aa1c1badb6fd26a5b6223f646739b6fd285b0182236db586c4 |
|
MD5 | d6853b3436240aba06940bca61485b1f |
|
BLAKE2b-256 | 618bff976c1dff629a1e52813e2dce4c77872414252ea5f18ef01e9f54223d52 |