Trait/Object

com.thoughtworks.deeplearning.DifferentiableINDArray

OptimizerFactory

Related Docs: object OptimizerFactory | package DifferentiableINDArray

Permalink

trait OptimizerFactory extends AnyRef

If a Optimizer has state, then learningRate can NOT been shared, such as Adam, so you will need:

Example:
  1. implicit val optimizerFactory = new DifferentiableINDArray.OptimizerFactory {
      override def ndArrayOptimizer(weight: Weight): Optimizer = {
        new LearningRate with L2Regularization with Adam {
          var learningRate = 0.00003
          override protected def l2Regularization: Double = 0.00003
          override protected def currentLearningRate(): Double = {
          learningRate * 0.75
          learningRate
         }
       }
     }
    }
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptimizerFactory
  2. AnyRef
  3. Any
Implicitly
  1. by toINDArrayLayerOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def ndArrayOptimizer(weight: Weight): Optimizer

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to any2stringadd[OptimizerFactory] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (OptimizerFactory, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to ArrowAssoc[OptimizerFactory] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def dot[Right](right: Right)(implicit rightToLayer: Aux[Right, Input, INDArray, INDArray]): Aux[Input, Tape]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  9. def ensuring(cond: (OptimizerFactory) ⇒ Boolean, msg: ⇒ Any): OptimizerFactory

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to Ensuring[OptimizerFactory] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (OptimizerFactory) ⇒ Boolean): OptimizerFactory

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to Ensuring[OptimizerFactory] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): OptimizerFactory

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to Ensuring[OptimizerFactory] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): OptimizerFactory

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to Ensuring[OptimizerFactory] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to StringFormat[OptimizerFactory] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def im2col(kernel: Array[Int], stride: Array[Int], padding: Array[Int]): Aux[Input, Tape]

    Permalink

    Im2col ops

    Im2col ops

    kernel

    kernel size / filter size

    stride

    stride size

    padding

    padding size

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def maxPool(poolSize: (Int, Int)): Aux[Input, Tape]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  22. def mean: Aux[Input, Tape]

    Permalink

    Returns mean of all elements of INDArray

    Returns mean of all elements of INDArray

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def permute(newShape: Aux[Input, Aux[Int, Float]]*): Aux[Input, Tape]

    Permalink

    [use case]

    [use case]
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
    Full Signature

    def permute[Element](newShape: Element*)(implicit toLayer: Aux[Element, Input, Int, Float]): Aux[Input, Tape]

  27. def permute(newShape: Int*): Aux[Input, Tape]

    Permalink

    [use case]

    [use case]
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
    Full Signature

    def permute[Element](newShape: Element*)(implicit toLayer: Aux[Element, Input, Int, Float]): Aux[Input, Tape]

  28. def reshape(newShape: Aux[Input, Aux[Int, Float]]*): Aux[Input, Tape]

    Permalink

    [use case]

    [use case]
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
    Full Signature

    def reshape[Element](newShape: Element*)(implicit toLayer: Aux[Element, Input, Int, Float]): Aux[Input, Tape]

  29. def reshape(newShape: Int*): Aux[Input, Tape]

    Permalink

    [use case]

    [use case]
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
    Full Signature

    def reshape[Element](newShape: Element*)(implicit toLayer: Aux[Element, Input, Int, Float]): Aux[Input, Tape]

  30. def shape: Aux[Input, Aux[Seq[Int], (Int, Float)]]

    Permalink

    Returns shape of INDArray

    Returns shape of INDArray

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  31. def sum(dimensions: Int*): Aux[Input, Tape]

    Permalink

    Returns sum dimensions of INDArray,will Returns an INDArrayPlaceholder

    Returns sum dimensions of INDArray,will Returns an INDArrayPlaceholder

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  32. def sum: Aux[Input, Tape]

    Permalink

    Returns sum of all elements of INDArray

    Returns sum of all elements of INDArray

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toSeq: Aux[Input, Aux[Seq[Seq[Double]], (Int, (Int, Double))]]

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def unary_-: Aux[Input, Tape]

    Permalink

    Returns opposite of all elements

    Returns opposite of all elements

    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to INDArrayLayerOps[Input] performed by method toINDArrayLayerOps in com.thoughtworks.deeplearning.DifferentiableINDArray. This conversion will take place only if an implicit value of type Aux[OptimizerFactory, Input, OutputData, OutputDelta] is in scope and at the same time an implicit value of type <:<[Aux[Input, Aux[OutputData, OutputDelta]], Aux[Input, Aux[INDArray, INDArray]]] is in scope.
    Definition Classes
    INDArrayLayerOps
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def [B](y: B): (OptimizerFactory, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from OptimizerFactory to ArrowAssoc[OptimizerFactory] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion toINDArrayLayerOps from OptimizerFactory to INDArrayLayerOps[Input]

Inherited by implicit conversion any2stringadd from OptimizerFactory to any2stringadd[OptimizerFactory]

Inherited by implicit conversion StringFormat from OptimizerFactory to StringFormat[OptimizerFactory]

Inherited by implicit conversion Ensuring from OptimizerFactory to Ensuring[OptimizerFactory]

Inherited by implicit conversion ArrowAssoc from OptimizerFactory to ArrowAssoc[OptimizerFactory]

Ungrouped