Class Sequential<T>

java.lang.Object
org.episteme.core.mathematics.ml.neural.layers.Sequential<T>
All Implemented Interfaces:
Serializable, Layer<T>

public class Sequential<T> extends Object implements Layer<T>
Container for sequential execution of layers.
See Also:
  • Constructor Details

    • Sequential

      public Sequential()
  • Method Details

    • add

      public void add(Layer<T> layer)
    • forward

      public GraphNode<T> forward(GraphNode<T> input)
      Description copied from interface: Layer
      Performs a forward pass using explicit autograd nodes.
      Specified by:
      forward in interface Layer<T>
      Parameters:
      input - the input node.
      Returns:
      the transformed output node.
    • getParameters

      public Map<String, GraphNode<T>> getParameters()
      Description copied from interface: Layer
      Returns the learnable parameters of this layer. Keys should be unique within the layer (e.g., "weights", "bias").
      Specified by:
      getParameters in interface Layer<T>
      Returns:
      a map of parameter graph nodes.