Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.96 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.96 KB

DeepCL Python wrappers

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

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:
  • 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