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 977.52 seconds (12.012 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: 1237239034278400
    Reset training subject: 1237248194512900
    Adding measurement 147059f8 to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=5.231574700154653;dx=-2.707198050403711E-5
    New Minimum: 5.231574700154653 > 5.231549204482906
    WOLFE (weak): th(2.154434690031884)=5.231549204482906; dx=-2.7071848656201783E-5 evalInputDelta=2.549567174625622E-5
    New Minimum: 5.231549204482906 > 5.23152403560111
    WOLFE (weak): th(4.308869380063768)=5.23152403560111; dx=-2.7063217741030577E-5 evalInputDelta=5.066455354274524E-5
    New Minimum: 5.23152403560111 > 5.231422471374289
    WOLFE (weak): th(12.926608140191302)=5.231422471374289; dx=-2.706168770298241E-5 evalInputDelta=1.5222878036347254E-4
    New Minimum: 5.231422471374289 > 5.2309653994385075
    WOLFE (weak): th(51.70643256076521)=5.2309653994385075; dx=-2.7054799521960074E-5 evalInputDelta=6.09300716145178E-4
    New Minimum: 5.2309653994385075 > 5.2285302240560565
    WOLFE (weak): th(258.53216280382605)=5.2285302240560565; dx=-2.7030868331702468E-5 evalInputDelta=0.0030444760985961494
    New Minimum: 5.2285302240560565 > 5.212815222398315
    WOLFE (weak): th(1551.1929768229563)=5.212815222398315; dx=-2.6786703384431206E-5 evalInputDelta=0.018759477756337795
    New Minimum: 5.212815222398315 > 5.106888757695052
    WOLFE (weak): th(10858.350837760694)=5.106888757695052; dx=-2.5209199598512254E-5 evalInputDelta=0.12468594245960052
    New Minimum: 5.106888757695052 > 4.453063458923259
    END: th(86866.80670208555)=4.453063458923259; dx=-1.5451422221986013E-5 evalInputDelta=0.7785112412313939
    Fitness changed from 5.231574700154653 to 4.453063458923259
    Iteration 1 complete. Error: 4.453063458923259 Total: 97.1109; Orientation: 0.0066; Line Search: 72.0214
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/fccc7944-846f-4c63-bcf0-2e694607a2ad.jpg)
    
    Adding measurement 1a85e86e to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=4.453063458923259;dx=-1.1407765351337864E-5
    New Minimum

...skipping 23978 bytes...

    adient 2.054e-04, dot -0.687; [a7b0bd55-e5cf-466c-94ec-b20894bb8391 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 0.3941289844671663, 0.3692034998944913, 0.3526854779168613, 0.3400045713290847
    LBFGS Accumulation History: 3 points
    Removed measurement 7ee3a2ed to history. Total: 4
    th(0)=0.3400045713290847;dx=-4.219964737884308E-8
    Armijo: th(1.0445962524205731E7)=0.4273653983995338; dx=1.1882521449337278E-8 evalInputDelta=-0.08736082707044912
    New Minimum: 0.3400045713290847 > 0.33615517624581476
    END: th(5222981.262102866)=0.33615517624581476; dx=-7.217899836017342E-9 evalInputDelta=0.003849395083269924
    Fitness changed from 0.3400045713290847 to 0.33615517624581476
    Iteration 29 complete. Error: 0.33615517624581476 Total: 31.7446; Orientation: 0.1989; Line Search: 23.7279
    Adding measurement 368ff8be to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 2.304e+03, gradient 2.436e-04, dot -0.558; [a7b0bd55-e5cf-466c-94ec-b20894bb8391 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 0.3692034998944913, 0.3526854779168613, 0.3400045713290847, 0.33615517624581476
    LBFGS Accumulation History: 3 points
    Removed measurement 17f8cad6 to history. Total: 4
    th(0)=0.33615517624581476;dx=-5.9362574796359516E-8
    Armijo: th(1.1252572016460925E7)=0.536968973682133; dx=4.477848614713845E-8 evalInputDelta=-0.20081379743631828
    Armijo: th(5626286.008230463)=0.34968855930709747; dx=1.2936288765215519E-8 evalInputDelta=-0.013533383061282711
    New Minimum: 0.33615517624581476 > 0.3130680907415716
    END: th(1875428.6694101542)=0.3130680907415716; dx=-2.8908281106670505E-8 evalInputDelta=0.023087085504243154
    Fitness changed from 0.33615517624581476 to 0.3130680907415716
    Iteration 30 complete. Error: 0.3130680907415716 Total: 39.8032; Orientation: 0.1990; Line Search: 31.7782
    <a id="p-21"></a>Iteration 30
    <a id="p-20"></a>![Iteration 30](etc/247ac9fa-1fce-46b4-9317-6293d6697f2c.jpg)
    
    Final threshold in iteration 31: 0.3130680907415716 (> -Infinity) after 977.513s (< 3600.000s)
    

Returns:

    0.3130680907415716