DropoutLayer

scalation.modeling.forecasting.neuralforecasting.DropoutLayer
case class DropoutLayer(p: Double)

The DropoutLayer class will, in computing the output, set each element to zero with probability p; otherwise, multiply it by a scale factor.

Value parameters

p

the probability of setting an element to zero

Attributes

See also

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

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