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 461.57 seconds (5.824 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: 910467928552600
    Reset training subject: 910471434048600
    Adding measurement 251c5444 to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=3.582552030682564;dx=-2.71829356603071E-6
    New Minimum: 3.582552030682564 > 3.582548677921295
    WOLFE (weak): th(2.154434690031884)=3.582548677921295; dx=-2.71828656635005E-6 evalInputDelta=3.3527612686157227E-6
    New Minimum: 3.582548677921295 > 3.582543432712555
    WOLFE (weak): th(4.308869380063768)=3.582543432712555; dx=-2.7183041431280246E-6 evalInputDelta=8.597970008850098E-6
    New Minimum: 3.582543432712555 > 3.5825250446796417
    WOLFE (weak): th(12.926608140191302)=3.5825250446796417; dx=-2.718334166582557E-6 evalInputDelta=2.6986002922058105E-5
    New Minimum: 3.5825250446796417 > 3.582444816827774
    WOLFE (weak): th(51.70643256076521)=3.582444816827774; dx=-2.7178906383993913E-6 evalInputDelta=1.0721385478973389E-4
    New Minimum: 3.582444816827774 > 3.5820186138153076
    WOLFE (weak): th(258.53216280382605)=3.5820186138153076; dx=-2.71532197747622E-6 evalInputDelta=5.334168672561646E-4
    New Minimum: 3.5820186138153076 > 3.579355500638485
    WOLFE (weak): th(1551.1929768229563)=3.579355500638485; dx=-2.7046677914593513E-6 evalInputDelta=0.003196530044078827
    New Minimum: 3.579355500638485 > 3.5602780133485794
    WOLFE (weak): th(10858.350837760694)=3.5602780133485794; dx=-2.606957563019704E-6 evalInputDelta=0.022274017333984375
    New Minimum: 3.5602780133485794 > 3.4239785373210907
    END: th(86866.80670208555)=3.4239785373210907; dx=-1.8991138255367347E-6 evalInputDelta=0.15857349336147308
    Fitness changed from 3.582552030682564 to 3.4239785373210907
    Iteration 1 complete. Error: 3.4239785373210907 Total: 42.0593; Orientation: 0.0610; Line Search: 31.4634
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/c2efa12c-db2b-4d4d-9d29-efefe9621a80.jpg)
    
    Adding measurement 1f978766 to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=3.4239785373210907;dx=-3.968427949244618E-6
    New M

...skipping 24601 bytes...

    cd5c71c08a50 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -0.46596553921699524, -0.4696473851799965, -0.4705594927072525, -0.4764173999428749
    LBFGS Accumulation History: 3 points
    Removed measurement 35e53c7a to history. Total: 4
    th(0)=-0.4764173999428749;dx=-9.438583837602388E-11
    New Minimum: -0.4764173999428749 > -0.47787801176309586
    WOLF (strong): th(1.8802732543570307E8)=-0.47787801176309586; dx=1.2009566917610486E-11 evalInputDelta=0.0014606118202209473
    New Minimum: -0.47787801176309586 > -0.4798918664455414
    END: th(9.401366271785153E7)=-0.4798918664455414; dx=-3.0728539234646205E-11 evalInputDelta=0.0034744665026664734
    Fitness changed from -0.4764173999428749 to -0.4798918664455414
    Iteration 29 complete. Error: -0.4798918664455414 Total: 15.7387; Orientation: 1.7353; Line Search: 10.6209
    Adding measurement 4759b196 to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 2.755e+03, gradient 9.054e-06, dot -0.683; [bcc08297-0da3-4ccb-bbea-cd5c71c08a50 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from -0.4696473851799965, -0.4705594927072525, -0.4764173999428749, -0.4798918664455414
    LBFGS Accumulation History: 3 points
    Removed measurement 55e31393 to history. Total: 4
    th(0)=-0.4798918664455414;dx=-8.196978566673472E-11
    New Minimum: -0.4798918664455414 > -0.48036470264196396
    WOLF (strong): th(2.0254629629629654E8)=-0.48036470264196396; dx=8.046413918508215E-12 evalInputDelta=4.728361964225769E-4
    New Minimum: -0.48036470264196396 > -0.48254360258579254
    END: th(1.0127314814814827E8)=-0.48254360258579254; dx=-1.8391746754347118E-11 evalInputDelta=0.0026517361402511597
    Fitness changed from -0.4798918664455414 to -0.48254360258579254
    Iteration 30 complete. Error: -0.48254360258579254 Total: 16.2009; Orientation: 1.7399; Line Search: 11.0520
    <a id="p-21"></a>Iteration 30
    <a id="p-20"></a>![Iteration 30](etc/e6f31524-1f85-49d8-8247-7082c890d927.jpg)
    
    Final threshold in iteration 31: -0.48254360258579254 (> -Infinity) after 461.573s (< 3600.000s)
    

Returns:

    -0.48254360258579254