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-10.0.0-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81929462605262a33467daff8087a8cd1afe6701c216a79b28a68a17e3a127e6 |
|
MD5 | b8dad6e0c4bfaeb1375c1a2d5bc5bd26 |
|
BLAKE2b-256 | 29de9692fa48ed1ca8f7ab7b4655f5a9e609241a5391c36d4b793debe5115b55 |
Hashes for DeepCL-10.0.0-py3.4-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 166243e7d1e6da9c6ffd0b003a77a96fc37c31c26ad06997bec97eef724b460f |
|
MD5 | f082ebe948b7b5bece5f4236cd8d948f |
|
BLAKE2b-256 | 490115a9ec027114c0b2393418258f8bb7952981612f024284158eb854d29cc2 |
Hashes for DeepCL-10.0.0-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5fca0f1eea823876220ef3265aa6caad23301e3ef55126e03b9754354162d14 |
|
MD5 | 7aa786ee4a3ac69403f954c3775bdb80 |
|
BLAKE2b-256 | d2cce82825167759af3ea51e754001047e1e747b7bfb5802cb91ef5ab63a9a12 |
Hashes for DeepCL-10.0.0-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | cca0d36768f57870b853c584114b56e2718382df40c15344458b98c83e3e2653 |
|
MD5 | 51e11ea85cbf63a6f154f411ec19b38b |
|
BLAKE2b-256 | 5f23f2aff7a5416df7b0dc88d1ef49c53f78bb9c56d4a358cfd18669ef8120ed |
Hashes for DeepCL-10.0.0-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278cd52d5b587aa683d565782b1f4162e2e75b5ee1d8101b096c4b6a0a92c98c |
|
MD5 | b9be571ff8423e2ee4e60aee008f93b1 |
|
BLAKE2b-256 | 5947722fcd7371c9c47500cc839b5bd8effaa3c85a2b268f8d62e5fd679973e3 |
Hashes for DeepCL-10.0.0-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8e1398e6de8bb423c2b0a1ba6a5083741411f7d33adb8d90a4976021bc5353 |
|
MD5 | 33a7e16de1920dd6f4d651e24e13be14 |
|
BLAKE2b-256 | 1b8fbad23c81af4f0985b0ace572d0dccf23551757eb52ce63d76403ece1f1d7 |