lale.operator_wrapper module

lale.operator_wrapper.get_lale_wrapper_modules() Set[str][source]
lale.operator_wrapper.register_lale_wrapper_modules(m: str) None[source]

Register a module with lale’s import system so that lale.helpers.import_from_sklearn_pipeline() will look for replacement classes in that module.

Example: (in __init__.py file for the module):

from lale import register_lale_wrapper_modules

register_lale_wrapper_modules(__name__)
Parameters

m ([str]) – The module name

lale.operator_wrapper.wrap_imported_operators(exclude_classes: Optional[Container[str]] = None, wrapper_modules: Optional[List[str]] = None) None[source]

Wrap the currently imported operators from the symbol table to their lale wrappers.

Parameters
  • exclude_classes (string, optional, default None) – List of class names to exclude from wrapping, alias names if they are used while importing.

  • wrapper_modules (set of string, optional, default None) – Set of Lale modules to use for wrapping operators.