Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/guide_intermediate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,15 @@ To setup the library to use your GPU or CPU explicitly in 32-bit or 64-bit mode,
from sknn.platform import cpu64

WARNING: This will only work if your program has not yet imported the ``theano`` module, due to the way that library is designed. If ``THEANO_FLAGS`` are set on the command-line, they are not overwridden.


Backend Configuration
---------------------

As of version 0.3, ``scikit-neuralnetwork`` supports multiple neural network implementations called backends, each wrapped behind an identical standardized interface. To configure a backend, you can do so by importing the corresponding module:

.. code:: python

from sknn.backend import pylearn2

As long as you call this before creating a neural network, this will register the PyLearn2 implementation as the one that's used. Supported backends are currently ``pylearn2`` (default) and ``deepy`` (incomplete).
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'scikit-learn',
'theano',
'pyyaml',
'colorama' if sys.platform == 'win32' else '',
# 'pylearn2',
]

Expand Down
6 changes: 6 additions & 0 deletions sknn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ def __getattr__(self, name):


sys.modules['sknn.platform'] = TheanoConfigurator()


try:
import colorama; colorama.init(); del colorama
except ImportError:
pass