deephyper.search.util.generic_loader

deephyper.search.util.generic_loader

deephyper.search.util.generic_loader(target: str, attribute=None)[source]

Load attribute from target module

Parameters
  • target (str or Object) – either path to python file, or dotted Python package name.

  • attribute (str) – name of the attribute to load from the target module.

Raises

GenericLoaderError – Raised when the generic_loader function is failing.

Returns

the loaded attribute.

Return type

Object