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-5.10.2-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14982d30b333307f44bb875c8a92380fd176255fc69e07e4ac1557acd53efdb3 |
|
MD5 | f01723733f3933eddc1cace4bc22e566 |
|
BLAKE2b-256 | 3f09f83094beddb0ab0887677f8cb5441a9c22954a9c5bc48ae71a66e5e81850 |
Hashes for DeepCL-5.10.2-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 554447aeea35d905f2332b960db233a52bc1dc9e6e3ad179ee62e8f16c1b0e7c |
|
MD5 | b2a4bcc76ae526d322fca9bb292966bd |
|
BLAKE2b-256 | 54995903477597b27f138dea8d9f7d624ebecf9a3c3192afac60431c01baf3e3 |
Hashes for DeepCL-5.10.2-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 821e6d0e0479ccdec51f20e8039cc85d2e5995cd7878c3c93cb36bc63328c301 |
|
MD5 | 3546385d27f6a0139aade2199b59ebc6 |
|
BLAKE2b-256 | 75f337473420fe1e67f89bc71f9d497b9593d27953f8e97dc51c79ac31c8304e |
Hashes for DeepCL-5.10.2-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1ead249326237ec2632d1d9428a0f9ec7615a37c5bbb88c65cb706f54a7840 |
|
MD5 | 2eb62b2bea0b9ba544c2fa70a74f3dda |
|
BLAKE2b-256 | 98575f3c7e401d7996821b04eb0282b6b8d237e88148852110534aa8af172918 |
Hashes for DeepCL-5.10.2-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d72aa4c088bcf582e15eaa6c56a8c3ce8364f9be4cf046be4121cfe80f563d0 |
|
MD5 | 608521c83347b3cc89b18654499bbeab |
|
BLAKE2b-256 | 30ef7863662a217fcb4733abb9eb46452a445fae53bb1eac69ea3a2b537ff92f |
Hashes for DeepCL-5.10.2-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d7e60e3ac115e394bffe8ba46a1f3d244ea929ad301c3828a2ac35ef57cc0d |
|
MD5 | e9c4b04b07988c5b29b8363ddb19ce1a |
|
BLAKE2b-256 | 86620220dfb3635012b3ff7ab9b037a8b1a246d644d5e3009a61faa30636ec79 |