Skip to main content

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

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:

  • 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

DeepCL-9.0.0alpha2.tar.gz (147.6 kB view details)

Uploaded Source

Built Distributions

DeepCL-9.0.0alpha2-py3.4-linux-x86_64.egg (541.8 kB view details)

Uploaded Source

DeepCL-9.0.0alpha2-py3.4-linux-i686.egg (502.9 kB view details)

Uploaded Source

DeepCL-9.0.0alpha2-py2.7-linux-x86_64.egg (499.6 kB view details)

Uploaded Source

DeepCL-9.0.0alpha2-py2.7-linux-i686.egg (465.2 kB view details)

Uploaded Source

File details

Details for the file DeepCL-9.0.0alpha2.tar.gz.

File metadata

File hashes

Hashes for DeepCL-9.0.0alpha2.tar.gz
Algorithm Hash digest
SHA256 fec1385bc74edc4ffd88443447bf5d4cbbd6ad093bf950ba6173ad888a8cd9dc
MD5 56741ae4a148a8699dac132a0669d038
BLAKE2b-256 80427280937e14f855d214a6651f2fc7364da625458fb86e01b162eff0f9d6e9

See more details on using hashes here.

File details

Details for the file DeepCL-9.0.0alpha2-py3.4-linux-x86_64.egg.

File metadata

File hashes

Hashes for DeepCL-9.0.0alpha2-py3.4-linux-x86_64.egg
Algorithm Hash digest
SHA256 633cf4236defb7590ec47e741dd37ce165fd4ef83aa7c27c84404bf2c8547f13
MD5 acee60b0592388f3647705608606fe0a
BLAKE2b-256 c1b01b6fbcd2387d07cca5cea63ffbcc9c4400bc2373f88e2fd782a0236334a4

See more details on using hashes here.

File details

Details for the file DeepCL-9.0.0alpha2-py3.4-linux-i686.egg.

File metadata

File hashes

Hashes for DeepCL-9.0.0alpha2-py3.4-linux-i686.egg
Algorithm Hash digest
SHA256 3154222d80dfcb734e6b1bb2c9d3a1a6b0956834e2e13ec71051826c7a83dea0
MD5 942fa3662b64d68d5db9a5dcd16c2c50
BLAKE2b-256 b90031d6a2060414fa7daafa2dd17cc88e70666afb26de3f8c4425c88de814ac

See more details on using hashes here.

File details

Details for the file DeepCL-9.0.0alpha2-py2.7-linux-x86_64.egg.

File metadata

File hashes

Hashes for DeepCL-9.0.0alpha2-py2.7-linux-x86_64.egg
Algorithm Hash digest
SHA256 112d9d571a2172d43cad1c68c3bab0a199c4d7a7330a4a0aa2aaf70d2c2f67a5
MD5 dce85c2596c3b0c8104e6be83147984c
BLAKE2b-256 e36dab24c51a8a945394e3de1f23eceee31602f18d074d8a974285d2ff9efe4d

See more details on using hashes here.

File details

Details for the file DeepCL-9.0.0alpha2-py2.7-linux-i686.egg.

File metadata

File hashes

Hashes for DeepCL-9.0.0alpha2-py2.7-linux-i686.egg
Algorithm Hash digest
SHA256 2140ced0e3cf9b0f7350f489dfae7ae57e7e7d37dd46f5aee6c36e0a32465e34
MD5 0ee927d8d22841378a9673db418a1ef5
BLAKE2b-256 dc0e7a22dc2c2471a9792063b79a00a633ac213bd54c3cb040bd6cc7653b137d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page