ML-Ensemble
author: | Sebastian Flennerhag |
---|---|
license: | MIT |
copyright: | 2017-2018 |
Global backend configurations.
Variables
DTYPE
: data type of prediction arrays. Must be a numpy dtype. Default isfloat32
.TMPDIR
: path to directory where temprorary caches will be hosted. Default is to use systemtmp
structure.PREFIX
: cache prefix. Default is'.mlens_tmp_cache_'
BACKEND
: global default backend. Default is'threading'
START_METHOD
: global start method (ifbackend='multiprocessing'
) Default is'fork'
VERBOSE
: verbose import. Set toY
for verbose. Needs to be set before import (i.e.export MLENS_VERBOSE=0
).IVALS
: load exception handling interval. Default is(0.01, 120)
.
Environmental variables can be set by
export MLENS_[VARIABLE]=VALUE
For changing defaults during a session, use
set_[variable]
and get_[variable]
, where [variable]
is replaced
with the lower case name of the environmental variable to change.
Changing global configurations in-session is experimental: Please report any unexpected behavior.
mlens.config¶
dtype¶
tmpdir¶
backend¶
start_method¶
prefix¶
ivals¶
Utility¶
clear_cache¶
-
mlens.config.
clear_cache
(tmp)[source]¶ Check that cache directory is empty.
Checks that a specified directory do not contain any directories with the ML-Ensemble temporary cache signature. Attempts to remove any found directories.
Parameters: tmp (str) – the directory to check for residual caches in.