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.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c597be7fcb4a91ef1c57e02295344dbef673fc54522290fedb2fe83ce4eb2d |
|
MD5 | 985ba1363b3964180bb1a6d8a6eed76b |
|
BLAKE2b-256 | 784002f516c9ebdfee38cf0dfe9b4fd59d142006ef60a1d9ee220a67e83a9cdd |
Hashes for DeepCL-v5.8.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1bc57a52698ad65eb9ca0289aeb873ddc61876f2ce435cffd0267fb075860c2 |
|
MD5 | 7654ca9110d84e27f5333a12ea3a0ae8 |
|
BLAKE2b-256 | 70d65b38051a0a0ccbebfcb18846d0f8502b5ea17f5f22dc4f552b03686ab04f |
Hashes for DeepCL-v5.8.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d3346347c79040bdc71f904144b0d436c833a2566ed0b9759215bbe2aa0d84 |
|
MD5 | e779671e06b1497426433b5eaec636c6 |
|
BLAKE2b-256 | 19c5d3a8c7148d2561d6118a9e554e10d4a05ac99689e9dbaf1a4c5bddb0ec16 |
Hashes for DeepCL-v5.8.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574ab33623c47a13f2e52db64b3d493fbe823c31719174f96c4c9ca2186d8c0f |
|
MD5 | d3b502d96131824884d5e375fa05147a |
|
BLAKE2b-256 | 16768ed8c2f09fc5c4dbaedb46e47b202e03aff042809f60336bbcec058f493c |