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.3-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad28186c3feb343fd5a524dcef467cf637e78a54299191b4d87185c272f15dc |
|
MD5 | 763572b02a0f339aae8bbf46b342a5a0 |
|
BLAKE2b-256 | d4873c9d3c32cf954591d1a5111166030b4476bcb1e185d0634bae9f22e99623 |
Hashes for DeepCL-v5.8.3-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | be7efdbe2e7af53609b0f2778e38b462e64996004e280e524fe88c6146736ba6 |
|
MD5 | 2ce61b987b1f3ee08ace17ce286b487d |
|
BLAKE2b-256 | e03412007850b09e0aacc0c832c0465606015b7e3330006cb015de7c6608cfac |
Hashes for DeepCL-v5.8.3-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ead8c88492ede04ef1baf8d169533c243bbf3a8ac0a4396d83f4c244266bab25 |
|
MD5 | be0be5905dd51c36c7a87d848cf0f599 |
|
BLAKE2b-256 | e0caa1f8e93d7642454a5d7406943ea97d669c3fe3de0344313c46ebb311db22 |
Hashes for DeepCL-v5.8.3-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f59e1e514e9085e494f8651bbfbc0b7097a689a47de0c6d55c938e99a71537 |
|
MD5 | 21215e9df7b31e08abcc99b24002ad0f |
|
BLAKE2b-256 | 9d2169ca19eba301f336e3b0cbab4dce07425c39974933ac97288355d4e3016e |