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
To install from pip
pip install --pre --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)
The same example, using numpy arrays: test_deepcl_numpy.py
For examples of using lower-level entrypoints, see test_lowlevel.py:
creating layers directly
running epochs and forward/backprop directly
note that you need numpy installed to run this example
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
To install:
cd python
python setup.py install
Changes
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-8.4.0alpha4-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | faec0a01ee9a68f57ab0b956d3017877e0fde785290d6e0d625f461034441235 |
|
MD5 | 16d25d6c11727ed3b4eb614462f6e467 |
|
BLAKE2b-256 | 878ecd8b5b6e338d9fe93efaede7c1e996657863a23e500a11e97ee5af33f38c |
Hashes for DeepCL-8.4.0alpha4-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d04e39f38df493aa87a3dec7295ba1c43b5a6df3402c48d192153bb3d1b33e4 |
|
MD5 | d01192cd74e8daf99165817607b84ecf |
|
BLAKE2b-256 | 375e290f3d34bf7c67fa36b72eb213e8da1b7739608e905c81cf202d790ef856 |
Hashes for DeepCL-8.4.0alpha4-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79ecfbc362cc209ef5283767d68f417d8e8535f63f8e01add3e71fc23a57f5ce |
|
MD5 | aac54c23ae3a7dcbe64b4bfe3b79dd39 |
|
BLAKE2b-256 | 2d6276d9d2f83b513512061b91bcaea2348b7e2736e02bf092520f1309cfaf49 |