baobab.configs package¶
baobab.configs.parser module¶
-
class
baobab.configs.parser.BaobabConfig(user_cfg)[source]¶ Bases:
objectNested dictionary representing the configuration for Baobab data generation
-
classmethod
from_file(user_cfg_path)[source]¶ Alternative constructor that accepts the path to the user-defined configuration python file :param user_cfg_path: path to the user-defined configuration python file :type user_cfg_path: str or os.path object
-
get_noise_kwargs(bandpass)[source]¶ Return the noise kwargs defined in the babobab config, e.g. for passing to the noise model for online data augmentation
Returns: - (dict) (A dict containing the noise kwargs to be passed to the noise) – model.
- (str) (The bandpass to pull the noise information for)
-
classmethod