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
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-9.0.2-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f1557c6feea08e92c69f62351ca89d2d42e2f9d02b61b790588bac2eb8226b2 |
|
MD5 | fd53f778e14883d309c876a27ed66dfd |
|
BLAKE2b-256 | 959749290fd1e37a5c8ef7ef70ada5d968a7081fa994c3f6fe16981a3ebe8c44 |
Hashes for DeepCL-9.0.2-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1c99b5ec9e8f91f9e04e8398c00dcb87923f77ac1ff1d2b93b0606c65d6ca4 |
|
MD5 | b2751e7b48cabe1c3f4b11d270f0f91b |
|
BLAKE2b-256 | 930629cce28def15a231c8009ffedbc9366d8e7f3350d4a52a0fd63e952e3d0e |
Hashes for DeepCL-9.0.2-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0ebdddecacf03ea95b864867b5dd0b9644d95621f053625cb2295e143dee464 |
|
MD5 | b8c818f53060ccee50ebf826926963af |
|
BLAKE2b-256 | d174384d48871df115dbe3a07d8fd3b35df6e3b074f66654ca5d0d4f534e2298 |
Hashes for DeepCL-9.0.2-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e909733310a6aea825b0afa53dfd6d4e0ee04e5e771439ca702f041c1c83790 |
|
MD5 | 63b1678b35d0bef5e21c176d5c942e72 |
|
BLAKE2b-256 | 3f0dbda25b0402361b65676ed1408bae04ee4b67df59ad10ebaa4135247a837f |