Returns a Poly.MathMethods.*.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.*
Returns a Poly.MathMethods.*.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.*
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.+.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.+
Returns a Poly.MathMethods.+.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.+
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.-.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.-
Returns a Poly.MathMethods.-.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods.-
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods./.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods./
Returns a Poly.MathMethods./.Case that accepts a Double Layer and a INDArray Layer for the polymorphic function Poly.MathMethods./
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.*.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.*
Returns a Poly.MathMethods.*.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.*
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.*.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.*
Returns a Poly.MathMethods.*.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.*
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDArray @Symbolic) = { Poly.MathMethods.*(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Poly.MathMethods.+.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.+
Returns a Poly.MathMethods.+.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.+
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.+.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.+
Returns a Poly.MathMethods.+.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.+
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDarray @Symbolic) = { Poly.MathMethods.+(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Poly.MathMethods.-.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.-
Returns a Poly.MathMethods.-.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods.-
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods.-.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.-
Returns a Poly.MathMethods.-.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods.-
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDarray @Symbolic) = { Poly.MathMethods.-(inputINDArrayLayer,anotherINDArrayLayer) }
Returns a Poly.MathMethods./.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods./
Returns a Poly.MathMethods./.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathMethods./
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherDoubleLayer) }
Returns a Poly.MathMethods./.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods./
Returns a Poly.MathMethods./.Case that accepts two INDArray Layers for the polymorphic function Poly.MathMethods./
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherINDArrayLayer: INDArray @Symbolic) = { Poly.MathMethods./(inputINDArrayLayer,anotherINDArrayLayer) }
Optimizers of NDArray
Optimizers of NDArray
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 } } } }
Returns a Poly.MathFunctions.abs.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.abs
Returns a Poly.MathFunctions.abs.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.abs
import com.thoughtworks.deeplearning.DifferentiableINDArray.`abs(INDArray)` import com.thoughtworks.deeplearning.Symbolic def absNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.abs(indArrayLayer) }
Importing this method will enable Poly.MathFunctions.abs for INDArray layers or any value able to convert to a INDArray layer
Returns a Poly.MathFunctions.exp.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.exp
Returns a Poly.MathFunctions.exp.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.exp
import com.thoughtworks.deeplearning.DifferentiableINDArray.`exp(INDArray)` import com.thoughtworks.deeplearning.Symbolic def expNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.exp(indArrayLayer) }
Importing this method will enable Poly.MathFunctions.exp for INDArray layers or any value able to convert to a INDArray layer
Returns a Poly.MathFunctions.log.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.log
Returns a Poly.MathFunctions.log.Case that accepts INDArray Layers for the polymorphic function Poly.MathFunctions.log
import com.thoughtworks.deeplearning.DifferentiableINDArray.`log(INDArray)` import com.thoughtworks.deeplearning.Symbolic def logNetwork(implicit inputINDArrayLayer: INDArray @Symbolic) = { Poly.MathFunctions.log(indArrayLayer) }
Importing this method will enable Poly.MathFunctions.log for INDArray layers or any value able to convert to a INDArray layer
Returns a Poly.MathFunctions.max.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathFunctions.max
Returns a Poly.MathFunctions.max.Case that accepts a INDArray Layer and a Double Layer for the polymorphic function Poly.MathFunctions.max
import com.thoughtworks.deeplearning.DifferentiableINDArray._ import com.thoughtworks.deeplearning.Symbolic def myNetwork(implicit inputINDArrayLayer: INDArray @Symbolic)(anotherDoubleLayer: Double @Symbolic) = { Poly.MathFunctions.max(inputINDArrayLayer,anotherDoubleLayer) }
A helper that contains common boilerplate code for all NDArray layers.
A helper that contains common boilerplate code for all NDArray layers.
import com.thoughtworks.deeplearning.DifferentiableNDArray._
Author:
杨博 (Yang Bo) <[email protected]>