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 278.11 seconds (3.923 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: 929800641977600
    Reset training subject: 929804713224000
    Adding measurement 32328d to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=3.3656197926029563;dx=-4.230919707451492E-4
    New Minimum: 3.3656197926029563 > 3.3649198627099395
    WOLFE (weak): th(2.154434690031884)=3.3649198627099395; dx=-4.2352031430753544E-4 evalInputDelta=6.999298930168152E-4
    New Minimum: 3.3649198627099395 > 3.3642211225815117
    WOLFE (weak): th(4.308869380063768)=3.3642211225815117; dx=-4.2026790995219524E-4 evalInputDelta=0.001398670021444559
    New Minimum: 3.3642211225815117 > 3.361433316487819
    WOLFE (weak): th(12.926608140191302)=3.361433316487819; dx=-4.2135345518041454E-4 evalInputDelta=0.004186476115137339
    New Minimum: 3.361433316487819 > 3.3490038868039846
    WOLFE (weak): th(51.70643256076521)=3.3490038868039846; dx=-4.164808839353121E-4 evalInputDelta=0.016615905798971653
    New Minimum: 3.3490038868039846 > 3.28918403852731
    END: th(258.53216280382605)=3.28918403852731; dx=-3.261968771811363E-4 evalInputDelta=0.0764357540756464
    Fitness changed from 3.3656197926029563 to 3.28918403852731
    Iteration 1 complete. Error: 3.28918403852731 Total: 37.6329; Orientation: 0.0790; Line Search: 25.8672
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/e2bb9f32-2d2e-41a5-ac9c-b541f69612a7.jpg)
    
    Adding measurement 628ca915 to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=3.28918403852731;dx=-3.136793470239264E-4
    New Minimum: 3.28918403852731 > 3.1803602976724505
    END: th(556.9906600335335)=3.1803602976724505; dx=-2.0654965112982046E-4 evalInputDelta=0.10882374085485935
    Fitness changed from 3.28918403852731 to 3.1803602976724505
    Iteration 2 complete. Error: 3.1803602976724505 Total: 12.0605; Orientation: 0.0697; Line Search: 8.0450
    <a id="p-5"></a>Iteration 2
    <a id="p-4"></a>![Iteration 2](etc/50b11d1f-9aa3-45a9-a31d-84fae54e38b2.jpg)
    
    Adding measurement 33284c04 to history. Total: 2
    LBFGS Accumulation History: 3 points
    th

...skipping 9871 bytes...

    1208466187)=2.679084835574031; dx=-6.685325398469992E-6 evalInputDelta=0.0045139966532588005
    Fitness changed from 2.6835988322272897 to 2.679084835574031
    Iteration 13 complete. Error: 2.679084835574031 Total: 14.2671; Orientation: 2.0515; Line Search: 8.3066
    Adding measurement 1864759f to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 1.926e+01, gradient 2.609e-03, dot -0.961; [155b1248-0825-4358-9b5d-d70f69d504fb = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 2.687655093614012, 2.686235222965479, 2.6835988322272897, 2.679084835574031
    LBFGS Accumulation History: 3 points
    Removed measurement 4e2ebcc3 to history. Total: 4
    th(0)=2.679084835574031;dx=-6.80837833446642E-6
    New Minimum: 2.679084835574031 > 2.6696786331012845
    END: th(1933.995347338659)=2.6696786331012845; dx=-5.5220735458954545E-6 evalInputDelta=0.009406202472746372
    Fitness changed from 2.679084835574031 to 2.6696786331012845
    Iteration 14 complete. Error: 2.6696786331012845 Total: 14.1138; Orientation: 2.0500; Line Search: 8.1960
    Adding measurement 14c126f9 to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 4.496e+01, gradient 2.388e-03, dot -0.966; [155b1248-0825-4358-9b5d-d70f69d504fb = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 2.686235222965479, 2.6835988322272897, 2.679084835574031, 2.6696786331012845
    LBFGS Accumulation History: 3 points
    Removed measurement 654fb82d to history. Total: 4
    th(0)=2.6696786331012845;dx=-5.7033716740563055E-6
    New Minimum: 2.6696786331012845 > 2.6524625262245536
    END: th(4166.66666666667)=2.6524625262245536; dx=-3.936940715297527E-6 evalInputDelta=0.01721610687673092
    Fitness changed from 2.6696786331012845 to 2.6524625262245536
    Iteration 15 complete. Error: 2.6524625262245536 Total: 14.6238; Orientation: 2.2979; Line Search: 8.3024
    <a id="p-15"></a>Iteration 15
    <a id="p-14"></a>![Iteration 15](etc/a30615d5-6ecc-429a-9210-6ae9d7e991fa.jpg)
    
    Final threshold in iteration 16: 2.6524625262245536 (> -Infinity) after 278.108s (< 1800.000s)
    

Returns:

    2.6524625262245536