Trait

com.github.nearbydelta.deepspark.data

WeightBuilder

Related Doc: package data

Permalink

trait WeightBuilder extends Serializable with KryoSerializable

Trait that describes the algorithm for weight update

Because each weight update requires history, we recommend to make inherited one as a class.

Linear Supertypes
KryoSerializable, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WeightBuilder
  2. KryoSerializable
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getUpdater(value: DataVec, noReg: Boolean): Algorithm[DataVec]

    Permalink

    Get Update Algorithm for given value.

    Get Update Algorithm for given value.

    value

    Target of alorithm.

    noReg

    True if this value does not require regularization.

    returns

    Algorithm object

    Attributes
    protected
  2. abstract def getUpdater(value: Matrix, noReg: Boolean): Algorithm[Matrix]

    Permalink

    Get Update Algorithm for given value.

    Get Update Algorithm for given value.

    value

    Target of alorithm.

    noReg

    True if this value does not require regularization.

    returns

    Algorithm object

    Attributes
    protected
  3. abstract def read(arg0: Kryo, arg1: Input): Unit

    Permalink
    Definition Classes
    KryoSerializable
  4. abstract def write(arg0: Kryo, arg1: Output): Unit

    Permalink
    Definition Classes
    KryoSerializable

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. final def buildMatrix(weight: Weight[Matrix], row: Int, col: Int, range: (Double, Double) = (1e-2, 2e-2), noReg: Boolean = false): Weight[Matrix]

    Permalink

    Build weight update algorithm for given Weight object.

    Build weight update algorithm for given Weight object.

    weight

    Weight object of Matrix

    row

    Size of row

    col

    Size of column

    range

    Range for random intitialization

    noReg

    True if this weight does not require regularization.

    returns

    Algorithm attached Weight object.

  6. final def buildVector(weight: Weight[DataVec], row: Int, range: (Double, Double) = (1e-2, 2e-2), noReg: Boolean = false): Weight[DataVec]

    Permalink

    Build weight update algorithm for given Weight object.

    Build weight update algorithm for given Weight object.

    weight

    Weight object of Vector

    row

    Size of row

    range

    Range for random intitialization

    noReg

    True if this weight does not require regularization.

    returns

    Algorithm attached Weight object.

  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 KryoSerializable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped