Output module

The Output module exposes selected relations as model predictions and define the interface between the internal architecture and user-level quantities of interest.

Each output is associated with a specific relation and identified by a semantic tag.

Outputs affect training only when explicitly included in the loss function; otherwise, they serve as access points for inference and analysis.

class nnodely.layers.output.Output(name: str, relation: Stream)[source]

Represents an output in the neural network model. This relation is what the network will give as output during inference.

Parameters:
  • name (str) – The name of the output.

  • relation (Stream) – The relation to be used for the output.

name

The name of the output.

Type:

str

json

A dictionary containing the configuration of the output.

Type:

dict

dim

A dictionary containing the dimensions of the output.

Type:

dict

classmethod clearNames(names: str | list | None = None)
names = ['SampleTime']