org.kramerlab.autoencoder.neuralnet

BiasedUnitLayer

abstract class BiasedUnitLayer extends MatrixParameterizedLayer with Serializable

Abstract layer representing a single row of units with a differentiable activation function and some biases (one bias value for each unit).

One only has to override activation and derivative methods, as well as the abstract methods inherited from Layer (reparameterized), everything else is already implemented.

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

Instance Constructors

  1. new BiasedUnitLayer(biases: Mat)

Abstract Value Members

  1. abstract def activation(d: Double): Double

    Activation function of the neurons

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

    Definition Classes
    MatrixParameterizedLayer
  3. abstract def derivative(d: Double): Double

    Calculates the derivative of the activation function

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 activation(ds: Mat): Mat

  11. def activityColorscheme: (Double) ⇒ Int

    Color map for the activities

    Color map for the activities

    Definition Classes
    Layer
  12. 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
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. var cachedInputPlusBias: Mat

    Attributes
    protected
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def derivative(ds: Mat): Mat

  17. def dot(other: Layer): Double

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

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

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

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

    Definition Classes
    AnyRef → Any
  22. def gradAndBackpropagationError(backpropagatedError: Mat): (MatrixParameterizedLayer, Mat)

    Calculates the gradient by pointwise multiplying the backpropagated error passed from above with the pointwise application of the derivative function to the cachedInputPlusBias, and summing the rows.

    Calculates the gradient by pointwise multiplying the backpropagated error passed from above with the pointwise application of the derivative function to the cachedInputPlusBias, and summing the rows. The matrix obtained before summing the rows is the new backpropagated error.

    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
    BiasedUnitLayerLayer
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. val inputDimension: Int

    Definition Classes
    BiasedUnitLayerLayer
  25. def isInfinite: Boolean

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

    Definition Classes
    Any
  27. def isInvalid: Boolean

    Definition Classes
    MatrixParameterizedLayerVectorSpace
  28. def isNaN: Boolean

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

    Definition Classes
    AnyRef
  30. def norm: Double

    Definition Classes
    VectorSpace
  31. def normSq: Double

    Definition Classes
    VectorSpace
  32. def normalized: Layer

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

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

    Definition Classes
    AnyRef
  35. val outputDimension: Int

    Definition Classes
    BiasedUnitLayerLayer
  36. val parameters: Mat

    Definition Classes
    MatrixParameterizedLayer
  37. def propagate(input: Mat): Mat

    Adds biases to each row of the input and applies the activation function pointwise.

    Adds biases to each row of the input and applies the activation function pointwise.

    Caches the input matrix with added biases in cachedInputPlusBias

    Definition Classes
    BiasedUnitLayerLayer
  38. def reverseLayer: MatrixParameterizedLayer

    The reversal is trivial, just

    The reversal is trivial, just

    Definition Classes
    BiasedUnitLayerLayer
  39. def reversePropagate(output: Mat): Mat

    Does exactly the same as the propagate method.

    Does exactly the same as the propagate method.

    Definition Classes
    BiasedUnitLayerLayer
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toImage: BufferedImage

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

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

    Definition Classes
    Visualizable
  44. def toString(): String

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

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

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

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

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

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

    Definition Classes
    MatrixParameterizedLayerVectorSpace

Inherited from MatrixParameterizedLayer

Inherited from Serializable

Inherited from Serializable

Inherited from Layer

Inherited from Visualizable

Inherited from VectorSpace[Layer]

Inherited from AnyRef

Inherited from Any

Ungrouped