com.thoughtworks.deeplearning.double.optimizers.LearningRate.scala Maven / Gradle / Ivy
The newest version!
package com.thoughtworks.deeplearning.double.optimizers
/**
* @author 杨博 (Yang Bo) <[email protected]>
*/
trait LearningRate extends Optimizer {
protected def currentLearningRate(): scala.Double
override def updateDouble(oldValue: Double, delta: Double): Double = {
oldValue - delta * currentLearningRate()
}
}