simpleml.registries
Import path for the different registries available
Submodules
Package Contents
Classes
Metaclass for defining Abstract Base Classes (ABCs). |
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Explicitly named version of the registry (not implicit on class names) |
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
Importable class to maintain reference to the global registry |
Attributes
- class simpleml.registries.DatasetRegistry[source]
Bases:
MetaRegistry
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.KerasRegistry[source]
Bases:
abc.ABCMeta
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.MetaRegistry[source]
Bases:
MetaBase
,abc.ABCMeta
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.MetricRegistry[source]
Bases:
MetaRegistry
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.ModelRegistry[source]
Bases:
MetaRegistry
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.NamedRegistry[source]
Bases:
Registry
Explicitly named version of the registry (not implicit on class names)
- class simpleml.registries.PipelineRegistry[source]
Bases:
MetaRegistry
Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed directly, and then acts as a mix-in class. You can also register unrelated concrete classes (even built-in classes) and unrelated ABCs as ‘virtual subclasses’ – these and their descendants will be considered subclasses of the registering ABC by the built-in issubclass() function, but the registering ABC won’t show up in their MRO (Method Resolution Order) nor will method implementations defined by the registering ABC be callable (not even via super()).
- class simpleml.registries.Registry[source]
Bases:
object
Importable class to maintain reference to the global registry
- clear(self)
Clear registry
- Return type
None
- context_register(self, cls)
Context manager to temporarily overwrite registry value Reverts to original value on exit
usage: ``` with Registry(…).context_register(cls):
…
- Parameters
cls (Type) –
- Return type
None
- register(self, cls)
- Parameters
cls (Type) –
- Return type
None