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.3.1-py3.5-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9fc993e816f5ac0cedf962f691385ec8c6e664bbfc6b46654787ad6f5a9fa05 |
|
MD5 | 3d00f04ea253443a9bafdab761fe9da4 |
|
BLAKE2b-256 | 407fa800f2c5bffc4493e3c94d08e09d6769cfb523739e980296a59283116a4c |
Hashes for DeepCL-11.3.1-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1f191bb57766cd878a35047ad1f67568b16a0ff711a5771ea0f1e0675c9a02 |
|
MD5 | 78d19449b7adb638f723daef17d5a516 |
|
BLAKE2b-256 | 4fc5834267348b6ab935deac08852c3c6268fd4b78d065a048a9745767d46449 |
Hashes for DeepCL-11.3.1-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44e5b45134ce22694eb478f84946e9993bdf5f9c1c4b9aba81d25bb149a8b7b8 |
|
MD5 | e8f0906ff7afd6f0e7b1dd4bad26346b |
|
BLAKE2b-256 | 71bcd7f7fec4d1cc88ef9b569c11b7211cb5555702c8e43c5068533e04eab4a0 |
Hashes for DeepCL-11.3.1-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab83786aa8df92a9d1b646cb2c66482b6d3b4c88fd7ea9523c5cce954363f411 |
|
MD5 | 1da4eb1b8f2670dafe85695bdec64c67 |
|
BLAKE2b-256 | 00bbf2365ed5e89013bda5c9fd76b6de53e9e317d0def980105c705ae75315ee |
Hashes for DeepCL-11.3.1-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b3aec1a3e386f9a1fd9394ec45dc1b3ae32c6a87be14253099c55634a844f6 |
|
MD5 | f518dbb19068065df6a27a2fb41cbbfa |
|
BLAKE2b-256 | c86ceb7ba76b581c312ba80abd1d9034a80e108d07251f82b92029d0f630bbb0 |
Hashes for DeepCL-11.3.1-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a583b32818e1646e30e5369921ad74489b46407ec4f5dcfe7a823969031b7f4a |
|
MD5 | 51245a199a2b7d19898056d117b0dec1 |
|
BLAKE2b-256 | 4e39d8091f608c9aa613498b35f693fb397eb51b85044aac13f05b76c003608d |