kr.ac.kaist.ir.deep.fn

StochasticGradientDescent

class StochasticGradientDescent extends WeightUpdater

Algorithm: Stochastic Gradient Descent

Basic Gradient Descent rule with mini-batch training.

Example:
  1. val algorithm = new StochasticGradientDescent(l2decay = 0.0001)
Linear Supertypes
WeightUpdater, Serializable, Serializable, (IndexedSeq[ScalarMatrix], IndexedSeq[ScalarMatrix]) ⇒ Unit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StochasticGradientDescent
  2. WeightUpdater
  3. Serializable
  4. Serializable
  5. Function2
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StochasticGradientDescent(rate: Scalar = 0.03f, l1decay: Scalar = 0.0000f, l2decay: Scalar = 0.0001f, momentum: Scalar = 0.0001f)

    rate

    the learning rate (Default 0.03)

    l1decay

    L1 regularization factor (Default 0.0)

    l2decay

    L2 regularization factor (Default 0.0001)

    momentum

    Momentum factor for adaptive learning (Default 0.0001)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def apply(delta: IndexedSeq[ScalarMatrix], weight: IndexedSeq[ScalarMatrix]): Unit

    Execute the algorithm for given sequence of Δweight and sequence of weights

    Execute the algorithm for given sequence of Δweight and sequence of weights

    delta

    the sequence of accumulated Δweight

    weight

    the sequence of current weights

    Definition Classes
    StochasticGradientDescentWeightUpdater → Function2
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def curried: (IndexedSeq[ScalarMatrix]) ⇒ (IndexedSeq[ScalarMatrix]) ⇒ Unit

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  14. val l1decay: Scalar

    L1 regularization factor (Default 0.0)

    L1 regularization factor (Default 0.0)

    Attributes
    protected
    Definition Classes
    StochasticGradientDescentWeightUpdater
  15. val l2decay: Scalar

    L2 regularization factor (Default 0.0001)

    L2 regularization factor (Default 0.0001)

    Attributes
    protected
    Definition Classes
    StochasticGradientDescentWeightUpdater
  16. def loss(seq: Seq[ScalarMatrix]): Float

    Compute weight-loss of given weight parameters

    Compute weight-loss of given weight parameters

    seq

    the sequence of weight matrices

    returns

    the total weight loss of this sequence

    Definition Classes
    WeightUpdater
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    Function2 → AnyRef → Any
  22. def tupled: ((IndexedSeq[ScalarMatrix], IndexedSeq[ScalarMatrix])) ⇒ Unit

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from WeightUpdater

Inherited from Serializable

Inherited from Serializable

Inherited from (IndexedSeq[ScalarMatrix], IndexedSeq[ScalarMatrix]) ⇒ Unit

Inherited from AnyRef

Inherited from Any

Ungrouped