Safe Haskell | None |
---|---|
Language | Haskell98 |
- class (RecurrentUpdateLayer x, SingI (RecurrentShape x)) => RecurrentLayer x i o where
- class UpdateLayer x => RecurrentUpdateLayer x where
- type RecurrentShape x :: Shape
Documentation
class (RecurrentUpdateLayer x, SingI (RecurrentShape x)) => RecurrentLayer x i o where Source #
runRecurrentForwards :: x -> S (RecurrentShape x) -> S i -> (RecTape x i o, S (RecurrentShape x), S o) Source #
Used in training and scoring. Take the input from the previous layer, and give the output from this layer.
runRecurrentBackwards :: x -> RecTape x i o -> S (RecurrentShape x) -> S o -> (Gradient x, S (RecurrentShape x), S i) Source #
Back propagate a step. Takes the current layer, the input that the layer gave from the input and the back propagated derivatives from the layer above. Returns the gradient layer and the derivatives to push back further.
class UpdateLayer x => RecurrentUpdateLayer x Source #
Class for a recurrent layer. It's quite similar to a normal layer but for the input and output of an extra recurrent data shape.
type RecurrentShape x :: Shape Source #
Shape of data that is passed between each subsequent run of the layer