DenseLayer

scalation.modeling.forecasting.neuralforecasting.DenseLayer
case class DenseLayer(n_x: Int, n_y: Int, f: AFF)

The DenseLayer class applies an (optionally activated) linear transformation to the input matrix X. Yp = f(X W + b) When f is null, it acts as a Linear Layer.

Value parameters

f

the activation function family for layers 1->2 (input to output)

n_x

the second dimension of the input matrix (m by n_x)

n_y

the second dimension of the output matrix (m by n_y)

Attributes

See also

pytorch.org/docs/stable/generated/torch.nn.Linear.html#torch.nn.Linear

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(x: MatrixD): MatrixD

Forward pass: calculate the output of this layer.

Forward pass: calculate the output of this layer.

Value parameters

x

the m by nx input matrix (full or batch)

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product