raredecay.meta_config module

Created on Fri Apr 1 15:32:17 2016

@author: Jonas Eschle “Mayou36”

This module provides the meta-configuration.
Mostly, you do not need to change this file or only some small parts of it.
Things you may want to change include whether to - promt for a addition to the file name - number of cores to use - path for pickle-files - default configuration for classifiers, figure saving and more
It contains furthermore: - (package-)global default variables for all modules. - Debug-options which change some implementation on a basic level like protocols. - Global configurations like the endings of specific file-types etc.

The explanation to the variables is available as a comment behind each.

Variables:

run_config:
It provides the right config module depending on what was chosen in the run-methods. Should not be changed during the run, only once in the begining.
SUPPRESS_WRONG_SKLEARN_VERSION:
This package was built for sklearn 0.17. With 0.18 there are some module-name changes, which can cause a crash of the program.
raredecay.meta_config.error_occured(max_error_count=1000)[source]

Call this function every time a non-critical error (saving etc) occurs.

raredecay.meta_config.get_n_cpu(n_cpu=None)[source]

Return the number of cpus to use. None means all. Can be -1, -2...

raredecay.meta_config.randfloat()[source]

Return a random float between 0 and 1.

raredecay.meta_config.randint()[source]

Return random integer.

raredecay.meta_config.set_parallel_profile(n_cpu=-1, gpu_in_use=False, stratified_kfolding=True)[source]

Set the number of cpus and whether a gpu is in use or not.

raredecay.meta_config.set_plot_verbosity(new_plot_verbosity)[source]

Set the plot verbosity.

raredecay.meta_config.set_seed(seed)[source]

Set the global random seed.

raredecay.meta_config.set_verbosity(new_verbosity)[source]

Set the verbosity.

raredecay.meta_config.warning_occured()[source]

Call this function every time a warning occurs.