simpleml.registries

Import path for the different registries available

Package Contents

Classes

DatasetRegistry

Metaclass for defining Abstract Base Classes (ABCs).

KerasRegistry

Metaclass for defining Abstract Base Classes (ABCs).

MetaRegistry

Metaclass for defining Abstract Base Classes (ABCs).

MetricRegistry

Metaclass for defining Abstract Base Classes (ABCs).

ModelRegistry

Metaclass for defining Abstract Base Classes (ABCs).

NamedRegistry

Explicitly named version of the registry (not implicit on class names)

PipelineRegistry

Metaclass for defining Abstract Base Classes (ABCs).

Registry

Importable class to maintain reference to the global registry

simpleml.registries.DATASET_REGISTRY[source]
simpleml.registries.KERAS_REGISTRY[source]
simpleml.registries.LOAD_METHOD_REGISTRY[source]
simpleml.registries.METRIC_REGISTRY[source]
simpleml.registries.MODEL_REGISTRY[source]
simpleml.registries.PIPELINE_REGISTRY[source]
simpleml.registries.SAVE_METHOD_REGISTRY[source]
simpleml.registries.SIMPLEML_REGISTRY[source]
simpleml.registries.__author__ = Elisha Yadgaran[source]
class simpleml.registries.DatasetRegistry[source]

Bases: simpleml.registries.sqlalchemy_registry.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: simpleml.registries.sqlalchemy_registry.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: simpleml.registries.sqlalchemy_registry.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: simpleml.registries.registry.Registry

Explicitly named version of the registry (not implicit on class names)

register(self, name, cls, allow_duplicates=True)
class simpleml.registries.PipelineRegistry[source]

Bases: simpleml.registries.sqlalchemy_registry.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

drop(self, key: str)None

Drop key from registry

get(self, class_name)
get_from_registry(self, class_name)
register(self, cls)