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-6.0.0-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01e212c67d24d6351c0bd3166a95cc0896191db091743f8ae293bd486b649a3b |
|
MD5 | e642e86904f63e3853cdfbc4e6916053 |
|
BLAKE2b-256 | 5157ed56cd5a293aa4476451bba669bb47d10b86c56decfafe4cb6da6321f6cf |
Hashes for DeepCL-6.0.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddad06f68959ca54d5418580ddee52c2a282d8e540b549a435e04d8090259440 |
|
MD5 | 11455d4f85ceea52ffd1e8c0be5144d8 |
|
BLAKE2b-256 | d82dd094c0d63dd26663d8ab9132ab687d7b00ae4d1e80fbc4c5777d39cc6c1f |
Hashes for DeepCL-6.0.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a168f77ef95b7811c94ddb6580172494b20220ef9714f9bf3a087ded486fe61 |
|
MD5 | 592d73072bd8bcc4b7a5c6b4b7c4f1d1 |
|
BLAKE2b-256 | 1baa767e81169b42fe84502e90d9cbf8be63d49fc508b2891ba0eeee5190f430 |
Hashes for DeepCL-6.0.0-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdb73b469184b571fbaadb784766556934fbe0d10774982f7a0e744d6b7a0851 |
|
MD5 | 37952eadb7734501b98897c703c3d5d1 |
|
BLAKE2b-256 | 939710f737862d278171a85afa516774aabcabe2bc9bada2d2bb2151e885b8b4 |
Hashes for DeepCL-6.0.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ed835e6ddfcaf81c2f37aa0db4ff67ad8f3652d21c5470faaf424d5b8904af |
|
MD5 | 3cacd3504433b686d26307998d93b241 |
|
BLAKE2b-256 | 8d1f976584ecd7af4cda6fbd075c1f34408b2f1c7d45ca0cbc26ec8d1263eb97 |
Hashes for DeepCL-6.0.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2abe9cba1d8b945e14d86ec70b69635ae87fae98ec2cc2d19810c5175ed91181 |
|
MD5 | ba97e9ca19c500ffa965c018d1492a92 |
|
BLAKE2b-256 | 9aa2c75aeb82d46b0101df34ced85e7dc4ad9afaf8f342be55ba1c7e01785fac |