Class

com.github.nearbydelta.deepspark.layer

FullTensorLayer

Related Doc: package layer

Permalink

class FullTensorLayer extends Rank3TensorLayer

Layer: Basic, Fully-connected Rank 3 Tensor Layer.

Note

      v0 = a column vector
      Q = Rank 3 Tensor with size out, in × in is its entry.
      L = Rank 3 Tensor with size out, 1 × in is its entry.
      b = out × 1 matrix.
      output = f( v0'.Q.v0 + L.v0 + b )

Linear Supertypes
Rank3TensorLayer, TransformLayer, Layer[DataVec, DataVec], KryoSerializable, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FullTensorLayer
  2. Rank3TensorLayer
  3. TransformLayer
  4. Layer
  5. KryoSerializable
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FullTensorLayer()

    Permalink

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. var NIn: Int

    Permalink

    Size of input *

    Size of input *

    Definition Classes
    Layer
  5. var NOut: Int

    Permalink

    Size of output *

    Size of output *

    Definition Classes
    Layer
  6. var act: Activation

    Permalink
    Definition Classes
    Rank3TensorLayer
  7. def apply(x: DataVec): DataVec

    Permalink

    Apply this layer (forward computation)

    Apply this layer (forward computation)

    returns

    Output computation information.

    Definition Classes
    Rank3TensorLayerLayer
  8. def apply(in: RDD[(Long, DataVec)]): RDD[(Long, DataVec)]

    Permalink

    Apply RDD of vector.

    Apply RDD of vector.

    in

    RDD of (ID, Value), ID is Long value.

    returns

    RDD of (ID, Vector), with same ID for input.

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

    Permalink
    Definition Classes
    Any
  10. def backprop(seq: ParSeq[((DataVec, DataVec), DataVec)]): (ParSeq[DataVec], ParSeq[() ⇒ Unit])

    Permalink

    Backward computation

    Backward computation

    seq

    Sequence of entries to be used for backward computation.

    returns

    Error sequence, to backpropagate into previous layer.

    Definition Classes
    Rank3TensorLayerLayer
    Note

    For the computation, we only used denominator layout. (cf. Wikipedia Page of Matrix Computation) For the computation rules, see "Matrix Cookbook" from MIT.

  11. def backward(error: ParSeq[DataVec]): (ParSeq[DataVec], ParSeq[() ⇒ Unit])

    Permalink

    Backward computation using propagated error.

    Backward computation using propagated error.

    error

    Propagated error sequence.

    returns

    Error sequence for back propagation.

    Definition Classes
    Layer
  12. val bias: Weight[DataVec]

    Permalink
    Definition Classes
    Rank3TensorLayer
  13. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. implicit val evidenceI: ClassTag[DataVec]

    Permalink

    ClassTag for input *

    ClassTag for input *

    Attributes
    protected
    Definition Classes
    TransformLayerLayer
  17. final var fanInA: Int

    Permalink
    Attributes
    protected
    Definition Classes
    Rank3TensorLayer
  18. final var fanInB: Int

    Permalink
    Attributes
    protected
    Definition Classes
    Rank3TensorLayer
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def forward(in: ParSeq[DataVec]): ParSeq[DataVec]

    Permalink

    Apply Parallel Sequence of vector.

    Apply Parallel Sequence of vector.

    in

    Parallel Sequence of Input

    returns

    Parallel Sequence of Vector

    Definition Classes
    Layer
  21. final def forward(in: RDD[(Long, DataVec)]): RDD[(Long, DataVec)]

    Permalink

    Apply RDD of vector.

    Apply RDD of vector.

    in

    RDD of (ID, Value), ID is Long value.

    returns

    RDD of (ID, Vector), with same ID for input.

    Definition Classes
    Layer
  22. final def forward(in: DataVec): DataVec

    Permalink

    Apply this layer (forward computation)

    Apply this layer (forward computation)

    in

    Input value

    returns

    Output Vector

    Definition Classes
    Layer
  23. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def in1(x: DataVec): DataVec

    Permalink

    Retrieve first input

    Retrieve first input

    x

    input to be separated

    returns

    first input

    Attributes
    protected
    Definition Classes
    FullTensorLayerRank3TensorLayer
  26. def in2(x: DataVec): DataVec

    Permalink

    Retrive second input

    Retrive second input

    x

    input to be separated

    returns

    second input

    Attributes
    protected
    Definition Classes
    FullTensorLayerRank3TensorLayer
  27. def initiateBy(builder: WeightBuilder): FullTensorLayer.this.type

    Permalink

    Set weight builder for this layer.

    Set weight builder for this layer.

    builder

    Weight builder to be applied

    returns

    self

    Definition Classes
    Rank3TensorLayerLayer
  28. var inoutSEQ: ParSeq[(DataVec, DataVec)]

    Permalink

    Sequence for backpropagation.

    Sequence for backpropagation. Stores output values. *

    Attributes
    protected
    Definition Classes
    Layer
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. var isUpdatable: Boolean

    Permalink

    True if this layer affected by backward propagation *

    True if this layer affected by backward propagation *

    Attributes
    protected
    Definition Classes
    Layer
  31. val linear: Weight[Matrix]

    Permalink
    Definition Classes
    Rank3TensorLayer
  32. def loss: Double

    Permalink

    Weight Loss of this layer

    Weight Loss of this layer

    returns

    Weight loss

    Definition Classes
    Rank3TensorLayerLayer
  33. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  36. final val outVecOf: (DataVec) ⇒ DataVec

    Permalink

    Output converter from OutInfo to Vector *

    Output converter from OutInfo to Vector *

    Definition Classes
    TransformLayerLayer
  37. val quadratic: ArrayBuffer[Weight[Matrix]]

    Permalink
    Definition Classes
    Rank3TensorLayer
  38. def read(kryo: Kryo, input: Input): Unit

    Permalink
    Definition Classes
    Rank3TensorLayerLayer → KryoSerializable
  39. def restoreError(in1: DataVec, in2: DataVec): DataVec

    Permalink

    Reconstruct error from fragments

    Reconstruct error from fragments

    in1

    error of input1

    in2

    error of input2

    returns

    restored error

    Attributes
    protected
    Definition Classes
    FullTensorLayerRank3TensorLayer
  40. def setUpdatable(bool: Boolean): Unit

    Permalink

    Assign whether this layer updatable or not.

    Assign whether this layer updatable or not. value.

    bool

    True if this layer used in backpropagation.

    Definition Classes
    Layer
  41. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def withActivation(act: Activation): FullTensorLayer.this.type

    Permalink

    Set the activation function.

    Set the activation function.

    act

    Activation function.

    returns

    self

    Definition Classes
    Rank3TensorLayer
  47. def withInput(in: Int): FullTensorLayer.this.type

    Permalink

    Set input size

    Set input size

    in

    Size of input

    returns

    self

    Definition Classes
    FullTensorLayerLayer
  48. def withOutput(out: Int): FullTensorLayer.this.type

    Permalink

    Set output size

    Set output size

    out

    Size of output

    returns

    self

    Definition Classes
    Layer
  49. def write(kryo: Kryo, output: Output): Unit

    Permalink
    Definition Classes
    Rank3TensorLayerLayer → KryoSerializable

Inherited from Rank3TensorLayer

Inherited from TransformLayer

Inherited from Layer[DataVec, DataVec]

Inherited from KryoSerializable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped