| Home | Trees | Indices | Help |
|
|---|
|
|
Provide information about optional dependencies.
This class should not be instantiated, it serves as a namespace
for dependency information. This information is encoded as a
series of attributes called ``has_<dependency>``.
Dependency parameters are object which have a a boolean value
(``True`` if the dependency is available). If False, they contain an
error string which will be used in ``mdp.config.info()`` output. If
``True``, they contain information about the available version of
the dependency. Those objects should be created by using the helper
class methods `ExternalDepFound` and `ExternalDepFailed`.
>>> bool(config.has_python)
True
Dependency parameters are numbered in the order of creation,
so the output is predictable.
The selection of the numerical backend (`numpy` or `scipy`) can be
forced by setting the environment variable MDPNUMX. The loading
of an optional dependency can be inhibited by setting the
environment variables ``MDP_DISABLE_<DEPNAME>`` to a non-empty
value.
The following variables are defined:
``MDPNUMX``
either ``numpy`` or ``scipy``. By default the latter is used
if available.
``MDP_DISABLE_PARALLEL_PYTHON``
inhibit loading of `mdp.parallel` based on parallel python
(module ``pp``)
``MDP_DISABLE_SHOGUN``
inhibit loading of the shogun classifier
``MDP_DISABLE_LIBSVM``
inhibit loading of the svm classifier
``MDP_DISABLE_JOBLIB``
inhibit loading of the ``joblib`` module and `mdp.caching`
``MDP_DISABLE_SKLEARN``
inhibit loading of the ``sklearn`` module
``MDPNSDEBUG``
print debugging information during the import process
``MDP_PP_SECRET``
set parallel python (pp) secret. If not set, and no secret is known
to pp, a default secret will be used.
``MDP_DISABLE_MONKEYPATCH_PP``
disable automatic monkeypatching of parallel python worker script,
otherwise a work around for debian bug #620551 is activated.
|
|||
| _ExternalDep | |||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
_HAS_NUMBER = 9
|
|||
has_joblib = 0.8.4
|
|||
has_libsvm = libsvm.so.2
|
|||
has_mdp = 3.5
|
|||
has_numx = scipy 0.14.1
|
|||
has_parallel_python = NOT AVAILABLE: No module named pp
|
|||
has_python = 2.7.10.final.0
|
|||
has_shogun = NOT AVAILABLE: No module named shogun
|
|||
has_sklearn = NOT AVAILABLE: No module named scikits.learn
|
|||
has_symeig = scipy.linalg.eigh
|
|||
|
|||
|
Inherited from |
|||
|
|||
Inform that an optional dependency was not found.
A new `_ExternalDep` object will be created and stored
in `config`.
:Parameters:
name
identifier of the optional dependency. This should
be a valid python identifier, because it will be
accessible as ``mdp.config.has_<name>`` attribute.
failmsg
an object convertible to ``str``, which will be displayed in
``mdp.config.info()`` output. This will usually be either an
exception (e.g. ``ImportError``), or a message string.
|
Inform that an optional dependency was found.
A new `_ExternalDep` object will be created and stored
in `config`.
:Parameters:
name
identifier of the optional dependency. This should
be a valid python identifier, because it will be
accessible as ``mdp.config.has_<name>`` attribute.
version
an object convertible to ``str``, which will be displayed in
``mdp.config.info()`` output. Something like ``'0.4.3'``.
|
Return nicely formatted info about MDP.
>>> print mdp.config.info() # doctest: +SKIP
python: 2.7.2.final.0
mdp: 3.3, MDP-3.2-9-g4bc7356+
parallel python: 1.6.1-monkey-patched
shogun: v1.1.0_02ce3cd_2011-12-12_08:17_
libsvm: libsvm.so.3
joblib: 0.5.4
sklearn: 0.9
numx: scipy 0.9.0
symeig: scipy.linalg.eigh
This function is used to provide the py.test report header and
footer.
|
|
|||
_HAS_NUMBER
|
has_joblib
|
has_libsvm
|
has_mdp
|
has_numx
|
has_parallel_python
|
has_python
|
has_shogun
|
has_sklearn
|
has_symeig
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Mar 10 15:27:27 2016 | http://epydoc.sourceforge.net |