BasicOptimizer.scala:89 executed in 26.38 seconds (0.232 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: 466777155277100
Reset training subject: 466780135276100
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
th(0)=-81.56146887377497;dx=-1.4252688827324634E-5
END: th(2.154434690031884)=-81.56149612445715; dx=-1.2115430153802868E-5 evalInputDelta=2.7250682180124386E-5
Fitness changed from -81.57567886903865 to -81.57567886903865
Static Iteration Total: 14.7201; Orientation: 0.0680; Line Search: 5.8825
Iteration 1 failed. Error: -81.57567886903865
Previous Error: 0.0 -> -81.57567886903865
Retrying iteration 1
Reset training subject: 466791875490700
Corrupt weights measurement
LBFGS Accumulation History: 0 points
th(0)=-81.56146887377497;dx=-1.4257653202479334E-5
END: th(4.641588833612779)=-81.56153018779706; dx=-1.2080316662612201E-5 evalInputDelta=6.131402209064163E-5
Fitness changed from -81.57567886903865 to -81.57567886903865
Static Iteration Total: 11.6617; Orientation: 0.0721; Line Search: 6.0782
Iteration 2 failed. Error: -81.57567886903865
Previous Error: 0.0 -> -81.57567886903865
Optimization terminated 2
Final threshold in iteration 2: -81.57567886903865 (> -Infinity) after 26.382s (< 5400.000s)

Returns

    -81.57567886903865