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.1.1-py3.5-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63191f135570d79da2f1c2cf13c3e2a151d55a61529d9d3e842017d21787fcb |
|
MD5 | 4b2ebaa3f7edd0ef1e3da0506801e36a |
|
BLAKE2b-256 | f0fb29c205e5769df48b867eb44a04bdaf9dececed46ad023f34b4af3dfbc65c |
Hashes for DeepCL-11.1.1-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa74ef8945260569f9435ca29ccc88834dfb629c53fce279771fe06eb43554e2 |
|
MD5 | 43d3765530da03a453b72e8a14320df4 |
|
BLAKE2b-256 | fb6c3098105142e7afee56ba1b7cfea637e26581d540e445f606e0d78c07c22d |
Hashes for DeepCL-11.1.1-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8bd55f54cf8a0f3a509656c66952fac30afec271f801808b5d59d48f57896b4 |
|
MD5 | 3b4269d869b0596ba37193fd30443360 |
|
BLAKE2b-256 | 84ce53f95fa03eaa55e27439dbe915d8034d0bd7f593bea5257f13e6422ebfc9 |
Hashes for DeepCL-11.1.1-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7114a753600088039ad24fa434b122ce787ce6207c36c5ae5abd4145828ad4a |
|
MD5 | 531a2dc65137b3c0df7db44546bbc5fa |
|
BLAKE2b-256 | 095d82d45e4c6eba2e6db11bec86344547355dd419a98a76abb856cfc389f282 |
Hashes for DeepCL-11.1.1-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a59e1ed7f838efac8895469b285178516bba14af4d38fb281fec6a4a25325e1 |
|
MD5 | e32cf1adc057690e4800be39805116fc |
|
BLAKE2b-256 | 5a016ce11fb2de72fee565daeac6698eb9c420972fc9ce4835120673f6430e70 |
Hashes for DeepCL-11.1.1-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef0d193aee1369f4a35dc2df050508d8fbceffaaf95666883bebdb478f231b3 |
|
MD5 | 75e86aa55580036a67a60824e3f493fe |
|
BLAKE2b-256 | 9250363e025531080967d0caa38576d5904d3629c44beba313aa8010ce04011b |