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 1021.78 seconds (9.592 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: 993246478838100
    Reset training subject: 993256171129400
    Adding measurement 3a97d971 to history. Total: 0
    LBFGS Accumulation History: 1 points
    Constructing line search parameters: GD+Trust
    th(0)=15.051807376460246;dx=-2.01675506330135E-5
    New Minimum: 15.051807376460246 > 15.051758076734766
    WOLFE (weak): th(2.154434690031884)=15.051758076734766; dx=-2.016751676602974E-5 evalInputDelta=4.929972548062267E-5
    New Minimum: 15.051758076734766 > 15.051710127403446
    WOLFE (weak): th(4.308869380063768)=15.051710127403446; dx=-2.016740486939147E-5 evalInputDelta=9.724905680030815E-5
    New Minimum: 15.051710127403446 > 15.051515197085461
    WOLFE (weak): th(12.926608140191302)=15.051515197085461; dx=-2.01639756070826E-5 evalInputDelta=2.921793747852064E-4
    New Minimum: 15.051515197085461 > 15.050640614667797
    WOLFE (weak): th(51.70643256076521)=15.050640614667797; dx=-2.0149858077428393E-5 evalInputDelta=0.0011667617924491225
    New Minimum: 15.050640614667797 > 15.045975733683596
    WOLFE (weak): th(258.53216280382605)=15.045975733683596; dx=-2.0156307919903132E-5 evalInputDelta=0.00583164277665027
    New Minimum: 15.045975733683596 > 15.016879993744192
    WOLFE (weak): th(1551.1929768229563)=15.016879993744192; dx=-2.007171609094205E-5 evalInputDelta=0.03492738271605411
    New Minimum: 15.016879993744192 > 14.811658830139114
    WOLFE (weak): th(10858.350837760694)=14.811658830139114; dx=-1.9172205060680007E-5 evalInputDelta=0.24014854632113192
    New Minimum: 14.811658830139114 > 13.49631809502301
    END: th(86866.80670208555)=13.49631809502301; dx=-1.177394160016813E-5 evalInputDelta=1.5554892814372359
    Fitness changed from 15.051807376460246 to 13.49631809502301
    Iteration 1 complete. Error: 13.49631809502301 Total: 100.5304; Orientation: 0.0098; Line Search: 74.0243
    <a id="p-3"></a>Iteration 1
    <a id="p-2"></a>![Iteration 1](etc/c4c3b8db-31b2-4ee9-8f37-ef2d5f61e95c.jpg)
    
    Adding measurement 4c28cff4 to history. Total: 1
    LBFGS Accumulation History: 2 points
    th(0)=13.49631809502301;dx=-8.897150533383398E-6

...skipping 24082 bytes...

    ation: 0.2626; Line Search: 16.5277
    Adding measurement 2d5054ed to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 2.098e+03, gradient 2.313e-04, dot -0.554; [0e38bddf-a028-4c5e-b260-60dddc353365 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 3.034371128752999, 2.980871378779936, 2.9318109955016713, 2.8879766082837217
    LBFGS Accumulation History: 3 points
    Removed measurement 62f72758 to history. Total: 4
    th(0)=2.8879766082837217;dx=-5.341063316139545E-8
    Armijo: th(1.1751707839731442E7)=3.3223612757761347; dx=2.7527137303941835E-8 evalInputDelta=-0.434384667492413
    Armijo: th(5875853.919865721)=2.959730566898214; dx=2.1248783887784964E-8 evalInputDelta=-0.07175395861449241
    New Minimum: 2.8879766082837217 > 2.822067893782412
    END: th(1958617.9732885736)=2.822067893782412; dx=-1.629390805662734E-8 evalInputDelta=0.06590871450130953
    Fitness changed from 2.8879766082837217 to 2.822067893782412
    Iteration 29 complete. Error: 2.822067893782412 Total: 41.9438; Orientation: 0.2473; Line Search: 33.2722
    Adding measurement 50153e20 to history. Total: 3
    Rejected: LBFGS Orientation magnitude: 2.392e+03, gradient 1.766e-04, dot -0.738; [0e38bddf-a028-4c5e-b260-60dddc353365 = 1.000/1.000e+00]
    Orientation rejected. Popping history element from 2.980871378779936, 2.9318109955016713, 2.8879766082837217, 2.822067893782412
    LBFGS Accumulation History: 3 points
    Removed measurement 2e5de56d to history. Total: 4
    th(0)=2.822067893782412;dx=-3.1092492747784717E-8
    New Minimum: 2.822067893782412 > 2.7891443435636676
    END: th(4219714.506172844)=2.7891443435636676; dx=-2.7619859214880296E-9 evalInputDelta=0.0329235502187446
    Fitness changed from 2.822067893782412 to 2.7891443435636676
    Iteration 30 complete. Error: 2.7891443435636676 Total: 25.0431; Orientation: 0.2539; Line Search: 16.5804
    <a id="p-21"></a>Iteration 30
    <a id="p-20"></a>![Iteration 30](etc/811ebdec-648f-487d-bdc6-c5efdf8615f9.jpg)
    
    Final threshold in iteration 31: 2.7891443435636676 (> -Infinity) after 1021.775s (< 3600.000s)
    

Returns:

    2.7891443435636676