python wrapper for DeepCL deep convolutional neural network library for OpenCL
Project description
Python wrapper for DeepCL
Pre-requisites
You must have first installed and activated DeepCL native libraries, see Build.md
numpy
To install from pip
pip install --upgrade 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 install 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
have first already built the native libraries, see Build.md
have activated the native library installation, ie called dist/bin/activate.sh, or dist/bin/activate.bat
numpy installed
To install:
cd python
python setup.py install
Changes
30 July 2016:
Added net.getNetdef(). Note that this is only an approximate representation of the network
29 July 2016:
New feature: can provide image tensor as 4d tensor now ,instead of 1d tensor (1d tensor ok too)
CHANGE: all image and label tensors must be provided as numpy tensors now, array.array no longer valid input
bug fix: qlearning works again :-)
25 July 2016:
added RandomSingleton class, to set the seed for weights initialization
added xor.py example
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-11.0.1-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc46105c48def3a9cf8fb4b9cf17ccc84989a4ee049d6deb0b0aad91a1b2cf79 |
|
MD5 | 46706570ae82cdce62a686fc6f723638 |
|
BLAKE2b-256 | b3623f129ec7260a18ca04e3d0757b2286bd0ba25c3f6e9c1c724f12d657f2b9 |
Hashes for DeepCL-11.0.1-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a05363ae5edb10e36ce0c0662b6ef672cf4b84cab307c85f97f3aa00b5a5fc7 |
|
MD5 | 8e6a952522c01467c0145b7026b2f3a1 |
|
BLAKE2b-256 | e2e88c0f6cbef9eafd080d61a5f7fcc4fc181fce0fb94be74f4b7349318c5640 |
Hashes for DeepCL-11.0.1-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d944d89cd23d28e7fbc9b3675bcd62330eeaa8d0bf1f7103da9247ad7e29969d |
|
MD5 | 8e4628e61973edc3f1404d5ff25f8fca |
|
BLAKE2b-256 | 0ecce54d74264a8df57159686ec465fadaa708c6eca9847340dff8113a823a31 |
Hashes for DeepCL-11.0.1-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2807ae2d8dec24ca74291ec857c90abd0b53e1e428c7bf4fe14d692a54ba404 |
|
MD5 | 80aa55df77a7090512f3410f38dec1c4 |
|
BLAKE2b-256 | 8994199aa91b4b4aefda10514a06f30a455502178af03a0e7ab7f9e6b0aa3b76 |