org.kramerlab.autoencoder.neuralnet

MatrixParameterizedLayer

abstract class MatrixParameterizedLayer extends Layer with Serializable

This is a base class for all layers that are parameterized by a rectangular array of double values. It implements the vector-space structure for layers, simply ignoring the precise type of the other argument in most cases: for all binary operations, it simply checks that the other argument is also parameterized by a matrix, combines the other matrix with this matrix, and augments it with structure of this Layer, simply discarding the structure of the other Layer, which is acceptable, if one keeps in mind that the other Layer should have been produced as output by this Layer in the backpropagation step.

All one has to do in the subclasses is to override build method, which takes the Mat-valued parameters, and creates Layer of same type as this.

Linear Supertypes
Serializable, Serializable, Layer, Visualizable, VectorSpace[Layer], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MatrixParameterizedLayer
  2. Serializable
  3. Serializable
  4. Layer
  5. Visualizable
  6. VectorSpace
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatrixParameterizedLayer(parameters: Mat)

Abstract Value Members

  1. abstract def build(newParameters: Mat): MatrixParameterizedLayer

  2. 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

    Definition Classes
    Layer
  3. abstract def inputDimension: Int

    Definition Classes
    Layer
  4. abstract def outputDimension: Int

    Definition Classes
    Layer
  5. 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.

    Definition Classes
    Layer
  6. abstract def reverseLayer: Layer

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

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

    Definition Classes
    Layer
  7. abstract def reversePropagate(output: Mat): Mat

    Returns the result of signal propagation in reverse direction

    Returns the result of signal propagation in reverse direction

    Definition Classes
    Layer

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 *(d: Double): MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  5. def +(other: Layer): MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  6. def -(other: Layer): MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  7. def /(d: Double): MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  8. final def ==(arg0: AnyRef): Boolean

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

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

    Color map for the activities

    Color map for the activities

    Definition Classes
    Layer
  11. def activityShape: Option[(Int, Int)]

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

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

    Definition Classes
    Layer
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def dot(other: Layer): Double

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Definition Classes
    AnyRef → Any
  20. def isInfinite: Boolean

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isInvalid: Boolean

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  23. def isNaN: Boolean

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def norm: Double

    Definition Classes
    VectorSpace
  26. def normSq: Double

    Definition Classes
    VectorSpace
  27. def normalized: Layer

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

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

    Definition Classes
    AnyRef
  30. val parameters: Mat

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toImage: BufferedImage

    Definition Classes
    MatrixParameterizedLayerVisualizable
  33. def toImage(w: Int, h: Int): BufferedImage

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

    Definition Classes
    Visualizable
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def unary_-: MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  37. def visualizeActivity(activity: Mat): BufferedImage

    Definition Classes
    Layer
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def zero: MatrixParameterizedLayer

    Definition Classes
    MatrixParameterizedLayerVectorSpace

Inherited from Serializable

Inherited from Serializable

Inherited from Layer

Inherited from Visualizable

Inherited from VectorSpace[Layer]

Inherited from AnyRef

Inherited from Any

Ungrouped