Code from BasicOptimizer.scala:75 executed in 45.18 seconds (1.106 gc):
val lineSearchInstance: LineSearchStrategy = lineSearchFactory
IterativeTrainer.wrap(trainable)
.setOrientation(orientation())
.setMonitor(new TrainingMonitor() {
override def clear(): Unit = trainingMonitor.clear()
override def log(msg: String): Unit = trainingMonitor.log(msg)
override def onStepFail(currentPoint: Step): Boolean = {
BasicOptimizer.this.onStepFail(trainable, currentPoint)
}
override def onStepComplete(currentPoint: Step): Unit = {
if (0 < logEvery && (0 == currentPoint.iteration % logEvery || currentPoint.iteration < logEvery)) {
val image = currentImage
timelineAnimation += image
val caption = "Iteration " + currentPoint.iteration
out.p(caption + "\n" + out.jpg(image, caption))
}
BasicOptimizer.this.onStepComplete(trainable, currentPoint)
trainingMonitor.onStepComplete(currentPoint)
super.onStepComplete(currentPoint)
}
})
.setTimeout(trainingMinutes, TimeUnit.MINUTES)
.setMaxIterations(trainingIterations)
.setLineSearchFactory((_: CharSequence) => lineSearchInstance)
.setTerminateThreshold(java.lang.Double.NEGATIVE_INFINITY)
.runAndFree
.asInstanceOf[lang.Double]
Reset training subject: 917106849591800
Reset training subject: 917107657828900
Adding measurement 27c08c3c to history. Total: 0
LBFGS Accumulation History: 1 points
Constructing line search parameters: GD+Trust
th(0)=0.7959573566913605;dx=-9.153352468303387E-8
Armijo: th(2.154434690031884)=0.7959573566913605; dx=-9.152994136647825E-8 evalInputDelta=0.0
Armijo: th(1.077217345015942)=0.7959573566913605; dx=-9.152994311775392E-8 evalInputDelta=0.0
Armijo: th(0.3590724483386473)=0.7959573566913605; dx=-9.15299434113977E-8 evalInputDelta=0.0
Armijo: th(0.08976811208466183)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.017953622416932366)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.002992270402822061)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(4.2746720040315154E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0017098688016126062)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.001068668001007879)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(7.480676007055152E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(5.877674005543334E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(6.679175006299243E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(6.278424505921289E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(6.078049255732311E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(5.977861630637822E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(6.027955443185067E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(6.053002349458689E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(6.0655258025955E-4)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0
...skipping 1802 bytes...
=0.0
Armijo: th(0.0032664310029849415)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0029397879026864474)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0031031094528356945)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030214486777610707)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0030622790652983824)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0030418638715297265)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030316562746453986)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0030367600730875624)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0030342081738664803)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.0030329322242559397)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
Armijo: th(0.003032294249450669)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030319752620480336)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030321347557493513)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030322145026000103)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030322543760253396)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
WOLFE (weak): th(0.0030322743127380045)=0.7959573566913605; dx=-9.152994380797487E-8 evalInputDelta=0.0
mu ~= nu (0.0030322743127380045): th(0.0)=0.7959573566913605
Fitness changed from 0.7959573566913605 to 0.7959573566913605
Static Iteration Total: 20.2919; Orientation: 0.0071; Line Search: 18.7587
Iteration 2 failed. Error: 0.7959573566913605
Previous Error: 0.0 -> 0.7959573566913605
Optimization terminated 2
Final threshold in iteration 2: 0.7959573566913605 (> -Infinity) after 45.179s (< 720.000s)
0.7959573566913605