kr.ac.kaist.ir.deep.train

StoppingCriteria

case class StoppingCriteria(maxIter: Int = 100000, patience: Int = 5000, patienceStep: Int = 2, improveThreshold: Double = 0.995, lossThreshold: Double = 1.0E-4, validationFreq: Int = 100) extends Serializable with Product

Criteria: When to stop training

This case class defines when to stop training. Training stops if one of the following condition is satisfied.

Validation is done for each validationFreq iterations, and whenever current/best loss ratio below improveThreshold, that iteration is marked as best iteration.

maxIter

maximum mini-batch iteration count (default 100,000)

patience

default patience count (default 5,000)

patienceStep

multiplier for calculating patience (default x2)

improveThreshold

threshold that iteration is marked as "improved" (default 95% = 0.95)

lossThreshold

maximum-tolerant loss value. (default 0.0001)

validationFreq

step count for validation (default 100)

Linear Supertypes
Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StoppingCriteria
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StoppingCriteria(maxIter: Int = 100000, patience: Int = 5000, patienceStep: Int = 2, improveThreshold: Double = 0.995, lossThreshold: Double = 1.0E-4, validationFreq: Int = 100)

    maxIter

    maximum mini-batch iteration count (default 100,000)

    patience

    default patience count (default 5,000)

    patienceStep

    multiplier for calculating patience (default x2)

    improveThreshold

    threshold that iteration is marked as "improved" (default 95% = 0.95)

    lossThreshold

    maximum-tolerant loss value. (default 0.0001)

    validationFreq

    step count for validation (default 100)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  9. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  11. val improveThreshold: Double

    threshold that iteration is marked as "improved" (default 95% = 0.95)

  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. val lossThreshold: Double

    maximum-tolerant loss value.

    maximum-tolerant loss value. (default 0.0001)

  14. val maxIter: Int

    maximum mini-batch iteration count (default 100,000)

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

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

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

    Definition Classes
    AnyRef
  18. val patience: Int

    default patience count (default 5,000)

  19. val patienceStep: Int

    multiplier for calculating patience (default x2)

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

    Definition Classes
    AnyRef
  21. val validationFreq: Int

    step count for validation (default 100)

  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped