Iteration 1 Iteration 1

Iteration 2 Iteration 2

Iteration 3 Iteration 3

Iteration 4 Iteration 4

Iteration 5 Iteration 5

Iteration 10 Iteration 10

Iteration 15 Iteration 15

Code from BasicOptimizer.scala:75 executed in 1013.69 seconds (6.878 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]

Logging:

    Reset training subject: 1143361435048600
    Reset training subject: 1143378256607500
    Adding measurement 4faf104 to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=12.257609151303768;dx=-4.136787907414321E-6
    New Minimum: 12.257609151303768 > 12.257594056427479
    WOLFE (weak): th(2.154434690031884)=12.257594056427479; dx=-4.137369198276043E-6 evalInputDelta=1.5094876289367676E-5
    New Minimum: 12.257594056427479 > 12.257576804608107
    WOLFE (weak): th(4.308869380063768)=12.257576804608107; dx=-4.140245954136106E-6 evalInputDelta=3.23466956615448E-5
    New Minimum: 12.257576804608107 > 12.257512733340263
    WOLFE (weak): th(12.926608140191302)=12.257512733340263; dx=-4.132820360963248E-6 evalInputDelta=9.641796350479126E-5
    New Minimum: 12.257512733340263 > 12.257222894579172
    WOLFE (weak): th(51.70643256076521)=12.257222894579172; dx=-4.1391524174225794E-6 evalInputDelta=3.8625672459602356E-4
    New Minimum: 12.257222894579172 > 12.255676236003637
    WOLFE (weak): th(258.53216280382605)=12.255676236003637; dx=-4.135069596887894E-6 evalInputDelta=0.0019329153001308441
    New Minimum: 12.255676236003637 > 12.24596343189478
    WOLFE (weak): th(1551.1929768229563)=12.24596343189478; dx=-4.150189641953009E-6 evalInputDelta=0.011645719408988953
    New Minimum: 12.24596343189478 > 12.174356646835804
    WOLFE (weak): th(10858.350837760694)=12.174356646835804; dx=-4.137414026622555E-6 evalInputDelta=0.08325250446796417
    New Minimum: 12.174356646835804 > 11.553162179887295
    END: th(86866.80670208555)=11.553162179887295; dx=-3.709336211425613E-6 evalInputDelta=0.7044469714164734
    Fitness changed from 12.257609151303768 to 11.553162179887295
    Iteration 1 complete. Error: 11.553162179887295 Total: 195.7543; Orientation: 0.0378; Line Search: 146.2500
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/f22035f5-d547-40f6-834f-652fc0c5deb7.jpg)
    
    Adding measurement 16132f21 to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=11.553162179887295;dx=-4.9721932873867

...skipping 10037 bytes...

    5, dot -0.915; [76655b1e-d74e-4633-8e32-ffd9ebdf207f = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -1.2157355397939682, -1.340389609336853, -1.465562753379345, -1.5626157894730568
    LBFGS Accumulation History: 3 points
    Removed measurement 27fe059d to history. Total: 4
    th(0)=-1.5626157894730568;dx=-4.558082765195485E-9
    New Minimum: -1.5626157894730568 > -1.7016658782958984
    END: th(2.5992897468231577E7)=-1.7016658782958984; dx=-2.068208362946838E-9 evalInputDelta=0.13905008882284164
    Fitness changed from -1.5626157894730568 to -1.7016658782958984
    Iteration 14 complete. Error: -1.7016658782958984 Total: 48.0905; Orientation: 0.4213; Line Search: 31.6493
    Adding measurement 4f281aaf to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 5.527e+03, gradient 8.358e-05, dot -0.634; [76655b1e-d74e-4633-8e32-ffd9ebdf207f = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -1.340389609336853, -1.465562753379345, -1.5626157894730568, -1.7016658782958984
    LBFGS Accumulation History: 3 points
    Removed measurement 4293e066 to history. Total: 4
    th(0)=-1.7016658782958984;dx=-6.978457658110987E-9
    Armijo: th(5.600000000000004E7)=-0.7638082355260849; dx=1.243299812947843E-8 evalInputDelta=-0.9378576427698135
    Armijo: th(2.800000000000002E7)=-1.5071273297071457; dx=8.398560029423297E-9 evalInputDelta=-0.19453854858875275
    New Minimum: -1.7016658782958984 > -1.7492192164063454
    WOLF (strong): th(9333333.33333334)=-1.7492192164063454; dx=2.3581054523038984E-10 evalInputDelta=0.04755333811044693
    END: th(2333333.333333335)=-1.7275593876838684; dx=-4.8870927330648285E-9 evalInputDelta=0.02589350938796997
    Fitness changed from -1.7016658782958984 to -1.7492192164063454
    Iteration 15 complete. Error: -1.7492192164063454 Total: 97.8084; Orientation: 0.4266; Line Search: 81.1379
    <a id="p-15"></a>Iteration 15
    <a id="p-14"></a>![Iteration 15](etc/df09240b-41bd-4ce8-b8fb-a386a79d3a77.jpg)
    
    Final threshold in iteration 16: -1.7492192164063454 (> -Infinity) after 1013.681s (< 3600.000s)
    

Returns:

    -1.7492192164063454