meerkat.tools package
Submodules
meerkat.tools.lazy_loader module
Lazy loader class.
- class LazyLoader(local_name, parent_module_globals=None, warning=None, error=None)[source]
Bases:
moduleLazily import a module, mainly to avoid pulling in large dependencies.
contrib, and ffmpeg are examples of modules that are large and not always needed, and this allows them to only be loaded when they are used.
meerkat.tools.utils module
- class MeerkatLoader(stream)[source]
Bases:
FullLoaderPyYaml does not load unimported modules for safety reasons.
We want to allow importing only meerkat modules
- convert_to_batch_column_fn(function: Callable, with_indices: bool, materialize: bool = True, **kwargs)[source]
Batch a function that applies to an example.
- convert_to_batch_fn(function: Callable, with_indices: bool, materialize: bool = True, **kwargs)[source]
Batch a function that applies to an example.
- nested_getattr(obj, attr, *args)[source]
Get a nested property from an object.
# noqa: E501 Source: https://stackoverflow.com/questions/31174295/getattr-and-setattr-on-nested-subobjects-chained-properties