org.kramerlab.autoencoder.neuralnet

Layer

trait Layer extends VectorSpace[Layer] with Visualizable

Represents a single layer of a neural network. The sort of layer meant here does not necessary contain any neurons, instead we think of a layer as of a filter in a long pipe: it can contain neurons that are activated with some activation function, but it can also contain only connections between the layer below and the layer above.

Common to all layers is that they are parameterized by something that is isomorphic to Real^n, that they know how to transform their input into output (or transmit the signal in opposite direction), and to calculate entries of the gradient of the error function that correspond to their parameters, given partial derivatives wrt. their output passed from above. With other words: each layer knows how to propagate all signals in feed-forward manner, and how to propagate errors backwards.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Layer
  2. Visualizable
  3. VectorSpace
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def *(d: Double): Layer

    Definition Classes
    VectorSpace
  2. abstract def +(v: Layer): Layer

    Definition Classes
    VectorSpace
  3. abstract def dot(v: Layer): Double

    Definition Classes
    VectorSpace
  4. abstract def gradAndBackpropagationError(backpropagatedError: Mat): (Layer, Mat)

    Returns the gradient (Layer-valued) and the backpropagated error, which is passed to the layer below.

    Returns the gradient (Layer-valued) and the backpropagated error, which is passed to the layer below.

    This method can rely on the fact that the propagate method already has been called in the first pass.

    backpropagatedError

    error propagated from above, formatted the same way (one row for each example) as input and output

    returns

    gradient (Layer-valued) and the next backpropagated error

  5. abstract def inputDimension: Int

  6. abstract def isInfinite: Boolean

    Definition Classes
    VectorSpace
  7. abstract def isNaN: Boolean

    Definition Classes
    VectorSpace
  8. abstract def outputDimension: Int

  9. abstract def propagate(input: Mat): Mat

    Returns the output given the input.

    Returns the output given the input. This method can cache data that could be useful on the second pass of the backpropagation.

    The input contains one example in each row, the output shall have the same layout.

  10. abstract def reverseLayer: Layer

    Creates a new independent layer that has the same type as this one, but propagates the information in reverse direction

  11. abstract def reversePropagate(output: Mat): Mat

    Returns the result of signal propagation in reverse direction

  12. abstract def toImage: BufferedImage

    Definition Classes
    Visualizable
  13. abstract def unary_-: Layer

    Definition Classes
    VectorSpace
  14. abstract def zero: Layer

    Definition Classes
    VectorSpace

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def -(v: Layer): Layer

    Definition Classes
    VectorSpace
  5. def /(d: Double): Layer

    Definition Classes
    VectorSpace
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def activityColorscheme: (Double) ⇒ Int

    Color map for the activities

  9. def activityShape: Option[(Int, Int)]

    Optionally, one can specify how to reshape the neuron activities for visualization (height, width).

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isInvalid: Boolean

    Definition Classes
    VectorSpace
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def norm: Double

    Definition Classes
    VectorSpace
  21. def normSq: Double

    Definition Classes
    VectorSpace
  22. def normalized: Layer

    Definition Classes
    VectorSpace
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toImage(w: Int, h: Int): BufferedImage

    Definition Classes
    Visualizable
  27. def toImage(colormap: (Double) ⇒ Int): BufferedImage

    Definition Classes
    Visualizable
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def visualizeActivity(activity: Mat): BufferedImage

  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Visualizable

Inherited from VectorSpace[Layer]

Inherited from AnyRef

Inherited from Any

Ungrouped