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.0alpha1-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab15f44b78071fd5537eb77534eeb842077a007f4101d7ed326969471e5011e6 |
|
MD5 | 4c6288a487a5b2c128e688e4d3c519b5 |
|
BLAKE2b-256 | 126d8f57e7185c3f78095bdc12af429aa2f5163f4da6d1208eb4accd3afaac5b |
Hashes for DeepCL-8.4.0alpha1-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77657278f43188c21199386c752a93b9e7ef69bd13cd12a498fb9fa86a2d7f6d |
|
MD5 | 1c62995850e9fc7d82f7f976b218ce33 |
|
BLAKE2b-256 | d4ca198d91ee9e494e0559053151f2aa4fc3edbb92406116e4a9e1cd0b3eef10 |