latents.base#
General-purpose base classes.
Classes
Base class for containers holding |
- class ArrayContainer[source]#
Base class for containers holding
numpy.ndarrayattributes.Provides common functionality for deep copying and clearing array attributes, plus a custom
__repr__that shows shapes instead of full values.Notes
This is an abstract base class with no attributes of its own. Subclasses should define their own
__init__that stores arrays as instance attributes. Thecopy()andclear()methods operate on all instance attributes.- copy() ArrayContainer[source]#
Return a deep copy of self.
- Returns:
ArrayContainerA deep copy of self.