Class

com.lewuathe.dllib.layer

PretrainLayer

Related Doc: package layer

Permalink

abstract class PretrainLayer extends Layer with ShapeValidator

Linear Supertypes
ShapeValidator, Layer, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PretrainLayer
  2. ShapeValidator
  3. Layer
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PretrainLayer()

    Permalink

Abstract Value Members

  1. abstract def backward(delta: Vector[Double], acts: ActivationStack, model: Model): (Vector[Double], Weight, Bias)

    Permalink

    Calculate the delta of this iteration.

    Calculate the delta of this iteration. The input of the layer in forward phase can be restored from ActivationStack. It returns the delta of input layer of this layer and the delta of coefficient and intercept parameter.

    returns

    The delta tuple of the layer while back propagation. First is passed previous layer, the second and third is the delta of Weight and Bias parameter of the layer.

    Definition Classes
    Layer
  2. abstract def createTmpLayer(): PretrainLayer

    Permalink

    Returns the form for creating tmp model used while pretraining

  3. abstract def decode(input: Vector[Double], model: Model, tmpModel: Model): (Vector[Double], Vector[Double])

    Permalink

    Decode the value in hidden layer toward visible layer

    Decode the value in hidden layer toward visible layer

    returns

    The value of visible layer

    Attributes
    protected
  4. abstract def encode(input: Vector[Double], model: Model, tmpModel: Model): (Vector[Double], Vector[Double])

    Permalink

    Encode the input toward hidden layer

    Encode the input toward hidden layer

    returns

    The value of hidden layer

    Attributes
    protected
  5. abstract def error(input: Vector[Double], visible: Vector[Double]): Vector[Double]

    Permalink
    Attributes
    protected
  6. abstract def forward(acts: ActivationStack, model: Model): Vector[Double]

    Permalink

    Calculate the output corresponding given input.

    Calculate the output corresponding given input. Input is given as a top of ActivationStack.

    returns

    The output tuple of the layer.

    Definition Classes
    Layer
  7. abstract val id: String

    Permalink
    Definition Classes
    Layer
  8. abstract val inputSize: Int

    Permalink
    Definition Classes
    Layer
  9. abstract val outputSize: Int

    Permalink
    Definition Classes
    Layer

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def pretrain(acts: ActivationStack, model: Model, tmpModel: Model): ((Weight, Bias), (Weight, Bias), Double)

    Permalink

    Pretraining with input data to the layer.

    Pretraining with input data to the layer. We can assume AutoEncoder can inherit this class. It returns the gradient of weight and bias of the layer.

    returns

    (dWeight1, dBias1): Hidden Layer Gradient (dWeight2, dBias2): Visible Layer Gradient (Hidden Layer Gradient, Visible Layer Gradient)

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

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    Layer → AnyRef → Any
  18. def validateParamShapes(weight: Matrix[Double], bias: Vector[Double]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ShapeValidator
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ShapeValidator

Inherited from Layer

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped