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.7.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7def6d121c349a8a8bfe3731a126a53b9d529fbe59e55776dbc94f63dd750562 |
|
MD5 | 4c16a3cfc8fff891570ef0c89d3ac1dc |
|
BLAKE2b-256 | 696efdd2edc1fefebf98b6e31a6e6e5a2309bad7117523c352591cc069ab0664 |
Hashes for DeepCL-v5.7.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01e46fdf443beb30811d743670fe9f8150c9f3cf13c4ff87b865c80ff24d5355 |
|
MD5 | 35d926864d6f393038ef99cbaeeddf9f |
|
BLAKE2b-256 | 216fa45b19d8c719dea938d044e4ef5b3e6cb4822de14ac7dfdbb331611058b8 |
Hashes for DeepCL-v5.7.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b52e6c5f3a9d4da7ccb369a622996f73458c9e44fb40777fd836b850f7542451 |
|
MD5 | ddb03f88ae6df2d731af7921e19dabcf |
|
BLAKE2b-256 | 67b12cd06db6081b232b9418ded909e2af9ba5520d1c4ff0ccbcde2730c5f695 |
Hashes for DeepCL-v5.7.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f8896f64765a00903678c61192412bf7b4d28fcc3d5e8ec082d4bc5d5fc4df |
|
MD5 | 9a8f4af93ee8bb3156ebe995c5ee466c |
|
BLAKE2b-256 | 28163fa0e9f12f8689f08020f2c5b1c6a278cc757c92fc150d7f3ae6d85c92dd |