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

Iteration 20 Iteration 20

Iteration 25 Iteration 25

Iteration 30 Iteration 30

Code from BasicOptimizer.scala:75 executed in 517.78 seconds (5.721 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: 922991888877700
    Reset training subject: 922995774780900
    Adding measurement 3375a9ba to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=2.8362421579658985;dx=-8.213826442539762E-6
    New Minimum: 2.8362421579658985 > 2.8362307026982307
    WOLFE (weak): th(2.154434690031884)=2.8362307026982307; dx=-8.210338578367976E-6 evalInputDelta=1.1455267667770386E-5
    New Minimum: 2.8362307026982307 > 2.836218524724245
    WOLFE (weak): th(4.308869380063768)=2.836218524724245; dx=-8.210864243643306E-6 evalInputDelta=2.3633241653442383E-5
    New Minimum: 2.836218524724245 > 2.8361705355346203
    WOLFE (weak): th(12.926608140191302)=2.8361705355346203; dx=-8.207358617312125E-6 evalInputDelta=7.162243127822876E-5
    New Minimum: 2.8361705355346203 > 2.8359563779085875
    WOLFE (weak): th(51.70643256076521)=2.8359563779085875; dx=-8.198495250431226E-6 evalInputDelta=2.8578005731105804E-4
    New Minimum: 2.8359563779085875 > 2.8348168041557074
    WOLFE (weak): th(258.53216280382605)=2.8348168041557074; dx=-8.147447288754033E-6 evalInputDelta=0.0014253538101911545
    New Minimum: 2.8348168041557074 > 2.8278664983808994
    WOLFE (weak): th(1551.1929768229563)=2.8278664983808994; dx=-7.67776967865137E-6 evalInputDelta=0.008375659584999084
    New Minimum: 2.8278664983808994 > 2.782224841415882
    END: th(10858.350837760694)=2.782224841415882; dx=-6.010875094815365E-6 evalInputDelta=0.0540173165500164
    Fitness changed from 2.8362421579658985 to 2.782224841415882
    Iteration 1 complete. Error: 2.782224841415882 Total: 41.8063; Orientation: 0.0665; Line Search: 29.7628
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/04fbe265-62e3-4fa9-a641-6fbf165c786a.jpg)
    
    Adding measurement 686bd30e to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=2.782224841415882;dx=-7.646766918583643E-6
    New Minimum: 2.782224841415882 > 2.663741122931242
    END: th(23393.607721408407)=2.663741122931242; dx=-5.055409495683822E-6 evalInputDelta=0.11848371848464012
    Fitness chan

...skipping 24557 bytes...

    44317245483
    Iteration 28 complete. Error: 0.22842544317245483 Total: 17.2930; Orientation: 1.9187; Line Search: 11.6132
    Adding measurement 2def8097 to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 6.680e+02, gradient 2.299e-04, dot -0.645; [6bd58d68-1057-4702-94ed-20136fdd4f54 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 0.2956755757331848, 0.27028846740722656, 0.2530346214771271, 0.22842544317245483
    LBFGS Accumulation History: 3 points
    Removed measurement 6a87361 to history. Total: 4
    th(0)=0.22842544317245483;dx=-5.287677402136545E-8
    New Minimum: 0.22842544317245483 > 0.20792436599731445
    END: th(1101722.6099748227)=0.20792436599731445; dx=-1.881219459324208E-9 evalInputDelta=0.02050107717514038
    Fitness changed from 0.22842544317245483 to 0.20792436599731445
    Iteration 29 complete. Error: 0.20792436599731445 Total: 13.3919; Orientation: 1.9466; Line Search: 7.7519
    Adding measurement 24995d3b to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 4.522e+02, gradient 2.091e-04, dot -0.681; [6bd58d68-1057-4702-94ed-20136fdd4f54 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 0.27028846740722656, 0.2530346214771271, 0.22842544317245483, 0.20792436599731445
    LBFGS Accumulation History: 3 points
    Removed measurement 69c72fe6 to history. Total: 4
    th(0)=0.20792436599731445;dx=-4.373788257467671E-8
    Armijo: th(2373589.4097222253)=0.20902106165885925; dx=1.891570854089888E-8 evalInputDelta=-0.0010966956615447998
    New Minimum: 0.20792436599731445 > 0.1903192102909088
    END: th(1186794.7048611126)=0.1903192102909088; dx=-4.902777016623547E-10 evalInputDelta=0.01760515570640564
    Fitness changed from 0.20792436599731445 to 0.1903192102909088
    Iteration 30 complete. Error: 0.1903192102909088 Total: 17.2539; Orientation: 1.9294; Line Search: 11.7168
    <a id="p-21"></a>Iteration 30
    <a id="p-20"></a>![Iteration 30](etc/b4677c67-b24c-4f2b-9b51-3a5280928aa6.jpg)
    
    Final threshold in iteration 31: 0.1903192102909088 (> -Infinity) after 517.781s (< 3600.000s)
    

Returns:

    0.1903192102909088