Code from BasicOptimizer.scala:75 executed in 823.30 seconds (4.585 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: 957727010298500
Reset training subject: 957767901135500
Adding measurement 355734f6 to history. Total: 0
LBFGS Accumulation History: 1 points
Constructing line search parameters: GD+Trust
th(0)=6.6537740379571915;dx=-1.6540313206871903E-4
New Minimum: 6.6537740379571915 > 6.65358567237854
WOLFE (weak): th(2.154434690031884)=6.65358567237854; dx=-1.6539204689225944E-4 evalInputDelta=1.8836557865142822E-4
New Minimum: 6.65358567237854 > 6.653395846486092
WOLFE (weak): th(4.308869380063768)=6.653395846486092; dx=-1.653700542202583E-4 evalInputDelta=3.781914710998535E-4
New Minimum: 6.653395846486092 > 6.652642324566841
WOLFE (weak): th(12.926608140191302)=6.652642324566841; dx=-1.6530763318596523E-4 evalInputDelta=0.0011317133903503418
New Minimum: 6.652642324566841 > 6.649252451956272
WOLFE (weak): th(51.70643256076521)=6.649252451956272; dx=-1.651833774855774E-4 evalInputDelta=0.004521586000919342
New Minimum: 6.649252451956272 > 6.631135925650597
WOLFE (weak): th(258.53216280382605)=6.631135925650597; dx=-1.6353432678004281E-4 evalInputDelta=0.02263811230659485
New Minimum: 6.631135925650597 > 6.520804971456528
WOLFE (weak): th(1551.1929768229563)=6.520804971456528; dx=-1.5609158740953133E-4 evalInputDelta=0.13296906650066376
New Minimum: 6.520804971456528 > 5.890445873141289
END: th(10858.350837760694)=5.890445873141289; dx=-1.0027234746886964E-4 evalInputDelta=0.7633281648159027
Fitness changed from 6.6537740379571915 to 5.890445873141289
Iteration 1 complete. Error: 5.890445873141289 Total: 451.3191; Orientation: 0.0312; Line Search: 327.7247
<a id="p-3"></a>Iteration 1
<a id="p-2"></a>![Iteration 1](etc/6fa0147a-cbbc-47c9-88c9-53756e9db416.jpg)
Adding measurement 5a396958 to history. Total: 1
LBFGS Accumulation History: 2 points
th(0)=5.890445873141289;dx=-8.260616696626697E-5
New Minimum: 5.890445873141289 > 5.176638200879097
END: th(23393.607721408407)=5.176638200879097; dx=-3.5041853788344927E-5 evalInputDelta=0.7138076722621918
Fitness changed from 5.890445873141289 to 5.176638200879097
Iteration 2 complete. Error: 5.176638200879097 Total: 121.3261; Orientation: 0.0339; Line Search: 80.4344
<a id="p-5"></a>Iteration 2
<a id="p-4"></a>![Iteration 2](etc/185cd408-a177-42e6-ab6d-188074b0f128.jpg)
Adding measurement 58cc385d to history. Total: 2
LBFGS Accumulation History: 3 points
th(0)=5.176638200879097;dx=-2.857457043581762E-5
New Minimum: 5.176638200879097 > 4.634194850921631
END: th(50400.00000000001)=4.634194850921631; dx=-1.3800313457215028E-5 evalInputDelta=0.5424433499574661
Fitness changed from 5.176638200879097 to 4.634194850921631
Iteration 3 complete. Error: 4.634194850921631 Total: 124.5903; Orientation: 0.0307; Line Search: 84.2058
<a id="p-7"></a>Iteration 3
<a id="p-6"></a>![Iteration 3](etc/154d9982-2d18-4293-8c31-7647d7e7dc48.jpg)
Adding measurement 5cdda67c to history. Total: 3
Rejected: LBFGS Orientation magnitude: 5.750e+02, gradient 3.922e-03, dot -0.917; [89268999-14cf-4043-b1fe-5299d23ba025 = 1.000/1.000e+00]
Orientation rejected. Popping history element from 6.6537740379571915, 5.890445873141289, 5.176638200879097, 4.634194850921631
LBFGS Accumulation History: 3 points
Removed measurement 355734f6 to history. Total: 4
th(0)=4.634194850921631;dx=-1.5384320277008223E-5
New Minimum: 4.634194850921631 > 4.148834176361561
END: th(108583.50837760697)=4.148834176361561; dx=-4.0623088564073415E-6 evalInputDelta=0.48536067456007004
Fitness changed from 4.634194850921631 to 4.148834176361561
Iteration 4 complete. Error: 4.148834176361561 Total: 126.0403; Orientation: 1.0402; Line Search: 82.9733
<a id="p-9"></a>Iteration 4
<a id="p-8"></a>![Iteration 4](etc/a705d2a2-8d60-4b40-bf04-9ac6b65040e2.jpg)
Final threshold in iteration 4: 4.148834176361561 (> -Infinity) after 823.304s (< 720.000s)
4.148834176361561