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.5.0-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e05ca2755db3917a18020a437bb7342dfaa8d65b8121af44a9f68a804d8429 |
|
MD5 | 7e4d53497624292a151cbb4f73fca3eb |
|
BLAKE2b-256 | 9598f220680087fa35f707230a3f835b411b0695ee7052c249ac28d201a7c277 |
Hashes for DeepCL-5.5.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 444f50dad11de035442f023945006a4ef7754ba1d1dbe35f879d76adf8909e7c |
|
MD5 | f691981a6cb60f707fd7b63c62b4616b |
|
BLAKE2b-256 | b67939478db95985116f3afe652f78079590b91b1a7b3a632a2f4ca138f3b247 |
Hashes for DeepCL-5.5.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c99fe404d77b50ee0517c4f660dd074a93a30ab56756b162c8483e50cdd5651 |
|
MD5 | 821c7e9e1c137b1f08e4d02b55550b49 |
|
BLAKE2b-256 | 4547c67cf58ce702587d8667024e273d6966124399d730133f58ae0360230477 |
Hashes for DeepCL-5.5.0-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc11fb18d58eb1dc9ef13c3945707586889fe194e613e642fb965ef6c2501b75 |
|
MD5 | 0b74e2ac7e363a9a35543de6d690d608 |
|
BLAKE2b-256 | 3481dcd6864082e24ef47ba16b60930b49fc63270348016bade18745f524d5c5 |
Hashes for DeepCL-5.5.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4991b225ab55be14dce309030766f1f0ee8f766c7bc4d9e81434843d937ef7f8 |
|
MD5 | 30c759af669b5ece88d5a8b54f0ea330 |
|
BLAKE2b-256 | 3c4bfab314503de7d460e10366e10bd7bc4e654d5ae26e81ba848edcb41bbd5c |
Hashes for DeepCL-5.5.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d652a58afe2e8c1d1f58ad093dfa65d7b54283d88bd41d75729a010cfbabec0c |
|
MD5 | 8c4481fe5c73d853bd91ead2090ee822 |
|
BLAKE2b-256 | 88581eaa3219c321a27c1a90d394c5bd9a26777f615897fe980d27077cbf6b81 |