dacapo.experiments.architectures.architecture_config

Classes

ArchitectureConfig

A class to represent the base configurations of any architecture. It is used to define the architecture of a neural network model.

Module Contents

class dacapo.experiments.architectures.architecture_config.ArchitectureConfig

A class to represent the base configurations of any architecture. It is used to define the architecture of a neural network model.

name

str a unique name for the architecture.

verify()

validates the given architecture.

Note

The class is abstract and requires to implement the abstract methods.

name: str
verify() Tuple[bool, str]

A method to validate an architecture configuration.

Returns:

A tuple of a boolean indicating if the architecture is valid and a message.

Return type:

Tuple[bool, str]

Raises:

NotImplementedError – If the method is not implemented in the derived class.

Examples

>>> config = ArchitectureConfig("MyModel")
>>> is_valid, message = config.verify()
>>> print(is_valid, message)

Note

The method should be implemented in the derived class.