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.2-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57ff0475c8d6faec0783a1bbd38f076be576149a8db6fdcd2fe88679dc8eda98 |
|
MD5 | fa79875a1c5e753495063e9c670539b2 |
|
BLAKE2b-256 | ea304255d7b2632d0cb670592fc387dd19ab9631939e0be6c6f666fbd953568e |
Hashes for DeepCL-v5.8.2-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 469596e221877f21055c3af8b582a832be721766906ce5081f5ea1cdf9be4815 |
|
MD5 | 33c64e499c1f2ec2c0ec1bb62d533a93 |
|
BLAKE2b-256 | 7387c41c042ac244943ef0795823ff4c044cb989e7a0f8cba0178bb8d069e1aa |
Hashes for DeepCL-v5.8.2-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9539e2e6be0ab9b7bd215ae45385a671a9e9aa02bd895eb80767165410342f46 |
|
MD5 | 8e2d712ccb1f59ca5d986596892f34f8 |
|
BLAKE2b-256 | 835e90fd8a127dfe840f61b91c0ea2d0d0ab2f155ad718ef635b9c742a5d2740 |
Hashes for DeepCL-v5.8.2-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2645b55b59d332ecc9b923471e38359576ce45fb7f8df60f7fb69a75d671f114 |
|
MD5 | 4b3d556427b42c8c8ad795cc51ef6156 |
|
BLAKE2b-256 | 589f77e0a45bfcd9838481a4e618144242118d549483865483c42df11b0088b4 |