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-4.0.0-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eac7ae50c2f0bb4df94457a1466ab9aa6f5466083f22a2cf14a1babdc993092 |
|
MD5 | 7b50eb5457c73b56880bc193a227ec10 |
|
BLAKE2b-256 | b5889c7ca36639124361d2998bcd22c0d94bdc083862842e1ce3c0dfaaac455a |
Hashes for DeepCL-4.0.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35c2a513aa8f8e54d9fb7ddfebe4cd5d627afe8b658285c6db8a316a49d90c4 |
|
MD5 | 7b2dfd8657f53302cb8e52678aa6cdc6 |
|
BLAKE2b-256 | e760e800cea8007407833541839dfc08e7763646ce3d7a0db1788243a8518ac6 |
Hashes for DeepCL-4.0.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122b4392a3e827e004235a238aebe2c6994dc9730f3a84e230e8200e688b68a5 |
|
MD5 | 4fc4c5af783192c45d52b8cac25cfa68 |
|
BLAKE2b-256 | 83d2ed8f1d0683085cfa9fd0429f24a116f70023e9717b8d4269d260eb27db27 |
Hashes for DeepCL-4.0.0-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 775b9a5455ad1123e6c391b6fc92288fa54911b2bc18766fad2b6fa9fc44dfa7 |
|
MD5 | 0b872dd38156810548350fc3c4c6ed75 |
|
BLAKE2b-256 | 36b2dc51a850f65d6aa87864cd3f0af4ee237348fd0a028456d07c39c0535d1e |
Hashes for DeepCL-4.0.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fe3d22bd82c1a4da5a54a098c6e8d75dd0a4239e04a306db5f520172c76c59f |
|
MD5 | 2337e6c744416f9640f8557fe43df34c |
|
BLAKE2b-256 | b0f0ca58667f4d3e226cce74d8de36e247b42c2942b0058368dd3e43eb3f65a0 |
Hashes for DeepCL-4.0.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 957763b6618d0ef92c0fb718bb4dbbb43d5477b3e3367b0f48cf3be9ca24e7ed |
|
MD5 | 12857b3f192b181a77b663e02f0a47c3 |
|
BLAKE2b-256 | e5900243de0cefed926072d4d40f34a38dd783b6c62f4c857c9eab3110146902 |