Type Definitions
Sometimes HeteroSymNN uses type definitions in type hints. This section explains what they represent.
- class HeteroSymNN.types.BackendArray[source]
BackendArray represents an array type used in the backend computations, can be either a NumPy array or a CuPy array depending on the hardware backend.
- class HeteroSymNN.types.ConstantToUpdate[source]
ConstantToUpdate represents a tuple containing the node index, the constant name, and the new value. Definition:
tuple[int, str, float]
- HeteroSymNN.types.FlexibleNodeConfig
FlexibleNodeConfig can be either a simple string representing the activation function name or a detailed
NodeConfigtuple.alias of
str|NodeConfig
- class HeteroSymNN.types.LayerConstructionConfig[source]
LayerConstructionConfig encapsulates the configuration needed to construct a neural network layer, including a list of
NodeConfigfor each node and the correspondingLayerValues. Definition:tuple[list[NodeConfig], LayerValues]