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

Code from BasicOptimizer.scala:75 executed in 1389.62 seconds (9.128 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: 740631240137800
    Reset training subject: 740648689157200
    Adding measurement 5e193ef5 to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=2.1326213090603563;dx=-4.887727489884596E-7
    New Minimum: 2.1326213090603563 > 2.13262035538604
    WOLFE (weak): th(2.154434690031884)=2.13262035538604; dx=-4.856699525921092E-7 evalInputDelta=9.5367431640625E-7
    New Minimum: 2.13262035538604 > 2.1326190887873384
    WOLFE (weak): th(4.308869380063768)=2.1326190887873384; dx=-4.856694397954696E-7 evalInputDelta=2.2202730178833008E-6
    New Minimum: 2.1326190887873384 > 2.132615179277817
    WOLFE (weak): th(12.926608140191302)=2.132615179277817; dx=-4.856665244227651E-7 evalInputDelta=6.129782539332496E-6
    New Minimum: 2.132615179277817 > 2.1325961735773014
    WOLFE (weak): th(51.70643256076521)=2.1325961735773014; dx=-4.856585290615612E-7 evalInputDelta=2.5135483054938845E-5
    New Minimum: 2.1325961735773014 > 2.132495775908758
    WOLFE (weak): th(258.53216280382605)=2.132495775908758; dx=-4.8561727011759E-7 evalInputDelta=1.2553315159813394E-4
    New Minimum: 2.132495775908758 > 2.1318682293600593
    WOLFE (weak): th(1551.1929768229563)=2.1318682293600593; dx=-4.85475192319108E-7 evalInputDelta=7.530797002970324E-4
    New Minimum: 2.1318682293600593 > 2.127355049909021
    WOLFE (weak): th(10858.350837760694)=2.127355049909021; dx=-4.843769829144964E-7 evalInputDelta=0.005266259151335273
    New Minimum: 2.127355049909021 > 2.090865322631457
    WOLFE (weak): th(86866.80670208555)=2.090865322631457; dx=-4.7597916168242986E-7 evalInputDelta=0.04175598642889922
    New Minimum: 2.090865322631457 > 1.789593996064044
    END: th(781801.26031877)=1.789593996064044; dx=-3.889717541630348E-7 evalInputDelta=0.3430273129963124
    Fitness changed from 2.1326213090603563 to 1.789593996064044
    Iteration 1 complete. Error: 1.789593996064044 Total: 225.7358; Orientation: 0.0320; Line Search: 172.2175
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/6d8477ba-8caf-45ec-820f-0e2674

...skipping 15168 bytes...

    4865687677082238E-8 evalInputDelta=0.013774010707260587
    Fitness changed from -0.5448905776037807 to -0.566171765292995
    Iteration 18 complete. Error: -0.566171765292995 Total: 99.3692; Orientation: 0.9066; Line Search: 82.3831
    Adding measurement 2b9aeedb to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 5.174e+03, gradient 1.372e-04, dot -0.578; [096d4903-b06d-4add-9990-6191feb4f5b4 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -0.4731598412369413, -0.5012226189642115, -0.5448905776037807, -0.566171765292995
    LBFGS Accumulation History: 3 points
    Removed measurement 7604198a to history. Total: 4
    th(0)=-0.566171765292995;dx=-1.8836125620085323E-8
    New Minimum: -0.566171765292995 > -0.5851590217871072
    END: th(1570941.9614815828)=-0.5851590217871072; dx=-6.0409145804363135E-9 evalInputDelta=0.01898725649411226
    Fitness changed from -0.566171765292995 to -0.5851590217871072
    Iteration 19 complete. Error: -0.5851590217871072 Total: 50.1582; Orientation: 0.8999; Line Search: 32.7834
    Adding measurement 26bb92e2 to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 2.324e+03, gradient 8.199e-05, dot -0.931; [096d4903-b06d-4add-9990-6191feb4f5b4 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -0.5012226189642115, -0.5448905776037807, -0.566171765292995, -0.5851590217871072
    LBFGS Accumulation History: 3 points
    Removed measurement 54c11750 to history. Total: 4
    th(0)=-0.5851590217871072;dx=-6.7220241683366495E-9
    New Minimum: -0.5851590217871072 > -0.6058646926545799
    END: th(3384491.8578426535)=-0.6058646926545799; dx=-5.957344613451746E-9 evalInputDelta=0.02070567086747266
    Fitness changed from -0.5851590217871072 to -0.6058646926545799
    Iteration 20 complete. Error: -0.6058646926545799 Total: 50.2092; Orientation: 0.9081; Line Search: 32.7331
    <a id="p-17"></a>Iteration 20
    <a id="p-16"></a>![Iteration 20](etc/f9575e1a-039c-4e34-b930-57b3f83c11ed.jpg)
    
    Final threshold in iteration 21: -0.6058646926545799 (> -Infinity) after 1389.615s (< 3600.000s)
    

Returns:

    -0.6058646926545799