registry ¶
A registry object for Encoder objects.
This registry can add a class to the registry either by using metaclass=EncoderRegistry in a new object or using the wrapper function as a header @EncoderRegistry.register(name)
Classes:
-
EncoderRegistry
–A specific registry for splitters.
EncoderRegistry ¶
Bases: AbstractRegistry
A specific registry for splitters.
ABC meta is needed here as AbstractRegistry implements ABC and uses @abstractmethod
Methods:
-
save_class
–Checks for the right class and saves it if class correct.
save_class classmethod
¶
save_class(
class_to_register: AbstractEncoder,
name: str | None = None,
) -> None
Checks for the right class and saves it if class correct.
Source code in src/stimulus/data/encoders/registry.py
23 24 25 26 27 28 29 30 31 |
|