Class

com.github.nearbydelta.deepspark.word

LedgerSGD

Related Doc: package word

Permalink

class LedgerSGD extends LedgerBuilder

Algorithm: Stochastic Gradient Descent

Basic Gradient Descent rule with mini-batch training.

Example:
  1. val algorithm = new StochasticGradientDescent(l2decay = 0.0001)
Linear Supertypes
LedgerBuilder, KryoSerializable, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LedgerSGD
  2. LedgerBuilder
  3. KryoSerializable
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LedgerSGD()

    Permalink
  2. new LedgerSGD(rate: Double = 0.03, l2decay: Double = 0.0001, momentum: Double = 0.0001)

    Permalink

    rate

    the learning rate (Default 0.03)

    l2decay

    L2 regularization factor (Default 0.0001)

    momentum

    Momentum factor for adaptive learning (Default 0.0001)

Type Members

  1. class Updater extends LedgerAlgorithm

    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. 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 getUpdater(model: ListLedger): LedgerAlgorithm

    Permalink
    Definition Classes
    LedgerSGDLedgerBuilder
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. var l2decay: Double

    Permalink

    L2 regularization factor (Default 0.0001)

  14. var momentum: Double

    Permalink

    Momentum factor for adaptive learning (Default 0.0001)

  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. var rate: Double

    Permalink

    the learning rate (Default 0.03)

  19. def read(kryo: Kryo, input: Input): Unit

    Permalink
    Definition Classes
    LedgerSGD → KryoSerializable
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def write(kryo: Kryo, output: Output): Unit

    Permalink
    Definition Classes
    LedgerSGD → KryoSerializable

Inherited from LedgerBuilder

Inherited from KryoSerializable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped