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.0alpha2-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 633cf4236defb7590ec47e741dd37ce165fd4ef83aa7c27c84404bf2c8547f13 |
|
MD5 | acee60b0592388f3647705608606fe0a |
|
BLAKE2b-256 | c1b01b6fbcd2387d07cca5cea63ffbcc9c4400bc2373f88e2fd782a0236334a4 |
Hashes for DeepCL-9.0.0alpha2-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3154222d80dfcb734e6b1bb2c9d3a1a6b0956834e2e13ec71051826c7a83dea0 |
|
MD5 | 942fa3662b64d68d5db9a5dcd16c2c50 |
|
BLAKE2b-256 | b90031d6a2060414fa7daafa2dd17cc88e70666afb26de3f8c4425c88de814ac |
Hashes for DeepCL-9.0.0alpha2-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112d9d571a2172d43cad1c68c3bab0a199c4d7a7330a4a0aa2aaf70d2c2f67a5 |
|
MD5 | dce85c2596c3b0c8104e6be83147984c |
|
BLAKE2b-256 | e36dab24c51a8a945394e3de1f23eceee31602f18d074d8a974285d2ff9efe4d |
Hashes for DeepCL-9.0.0alpha2-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2140ced0e3cf9b0f7350f489dfae7ae57e7e7d37dd46f5aee6c36e0a32465e34 |
|
MD5 | 0ee927d8d22841378a9673db418a1ef5 |
|
BLAKE2b-256 | dc0e7a22dc2c2471a9792063b79a00a633ac213bd54c3cb040bd6cc7653b137d |