BasicOptimizer.scala:89 executed in 33.83 seconds (0.475 gc):

    val lineSearchInstance: LineSearchStrategy = lineSearchFactory
    val trainer = new IterativeTrainer(trainable)
    trainer.setOrientation(orientation())
    trainer.setMonitor(new TrainingMonitor() {
      override def clear(): Unit = trainingMonitor.clear()
  
      override def log(msg: String): Unit = {
        trainingMonitor.log(msg)
        BasicOptimizer.this.log(msg)
      }
  
      override def onStepFail(currentPoint: Step): Boolean = {
        BasicOptimizer.this.onStepFail(trainable.addRef().asInstanceOf[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.addRef().asInstanceOf[Trainable], currentPoint)
        trainingMonitor.onStepComplete(currentPoint)
        super.onStepComplete(currentPoint)
      }
    })
    trainer.setTimeout(trainingMinutes, TimeUnit.MINUTES)
    trainer.setMaxIterations(trainingIterations)
    trainer.setLineSearchFactory((_: CharSequence) => lineSearchInstance)
    trainer.setTerminateThreshold(java.lang.Double.NEGATIVE_INFINITY)
    val result = trainer.run.asInstanceOf[lang.Double]
    trainer.freeRef()
    result
Logging
Reset training subject: 41314533759100
Reset training subject: 41316821829400
Adding measurement 12f5d987 to history. Total: 0
LBFGS Accumulation History: 1 points
Constructing line search parameters: GD+Trust
th(0)=-49.64699039815759;dx=-1.7147177680547394E-6
Armijo: th(2.154434690031884)=-49.64699039815759; dx=-1.3211019552605752E-6 evalInputDelta=0.0
Armijo: th(1.077217345015942)=-49.64699039815759; dx=-1.3223967642310589E-6 evalInputDelta=0.0
Armijo: th(0.3590724483386473)=-49.64699039815759; dx=-1.323118230377658E-6 evalInputDelta=0.0
Armijo: th(0.08976811208466183)=-49.64699039815759; dx=-1.3231280586042585E-6 evalInputDelta=0.0
Armijo: th(0.017953622416932366)=-49.64699039815759; dx=-1.3231291042983536E-6 evalInputDelta=0.0
Armijo: th(0.002992270402822061)=-49.64699039815759; dx=-1.3228992503723276E-6 evalInputDelta=0.0
END: th(4.2746720040315154E-4)=-49.64699039815759; dx=-1.3226868408039873E-6 evalInputDelta=0.0
Fitness changed from -49.64699039815759 to -49.64699039815759
Static Iteration Total: 24.8269; Orientation: 0.0841; Line Search: 17.8141
Iteration 1 failed. Error: -49.64699039815759
Previous Error: 0.0 -> -49.64699039815759
Retrying iteration 1
Reset training subject: 41339360794400
Adding measurement 361442e6 to history. Total: 0
LBFGS Accumulation History: 1 points
th(0)=-49.64699039815759;dx=-1.7163999525671851E-6
END: th(9.20950165399361E-4)=-49.64699039815759; dx=-1.3227523714632228E-6 evalInputDelta=0.0
Fitness changed from -49.64699039815759 to -49.64699039815759
Static Iteration Total: 9.0005; Orientation: 0.0637; Line Search: 4.5647
Iteration 2 failed. Error: -49.64699039815759
Previous Error: 0.0 -> -49.64699039815759
Optimization terminated 2
Final threshold in iteration 2: -49.64699039815759 (> -Infinity) after 33.828s (< 5400.000s)

Returns

    -49.64699039815759