Python wrapper for DeepCL
You must have first installed and activated DeepCL native libraries, see Build.md
pip install --pre --upgrade DeepCL
- related pypi page: https://pypi.python.org/pypi/DeepCL
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.
- 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
, ordist/bin/activate.bat
cd python
python setup.py install