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.5.0alpha3-py3.4-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c7a9d47f5f1d7d27b9ec3c091123cf5ee5ed9c250ba159ebcfc4e588ba7480 |
|
MD5 | 3993f02fd9a5914db9fcc37a3542f959 |
|
BLAKE2b-256 | a591be5ea5fb88b8af8eae3c2326431c618aad44b7b125ffa88a05bd125ce7f5 |
Hashes for DeepCL-8.5.0alpha3-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b8e3c16e7e8b0b621e1f010f8698d5194b7acc8eeb2c987977b4d676d01eefc |
|
MD5 | 09056c8b6d8598beba48fb825adeff04 |
|
BLAKE2b-256 | 0d25094fbf0f6e4cbfb731f188c7f6e8b1218b20f6e2654c77da45ee3b90b62f |
Hashes for DeepCL-8.5.0alpha3-py2.7-linux-i686.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d953331e0aadbf0a3c26b2a0ce15e13f4acfe3a0a55453cfa583a9ddd183e7cb |
|
MD5 | ebe026f576bff61d7c261025952a11da |
|
BLAKE2b-256 | 32fdaba9abaccc0d2af4022424a5c4484e432d6603c7c77e4c46727757b4e74c |