dgs.models.loader.module_loader

dgs.models.loader.module_loader(config: dict[str, any], module_type: str, key: list[str] | str, *_, **kwargs) any[source]

Load a given module and pass down the configuration

Parameters:
  • config – The configuration of the current tracker

  • module_type – The type of the module.

  • key – Name of the key in the configuration that contains the parameters for this module. Can be a list of names for nested configurations.

  • kwargs – Additional keyword arguments passed to the module during initialization.

Returns:

Initialized instance of the submodule with its config.