BasicOptimizer.scala:89 executed in 25.43 seconds (0.290 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: 465943665698400
Reset training subject: 465946513097800
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
th(0)=-102.31437367080643;dx=-1.4836731164908144E-5
END: th(2.154434690031884)=-102.31440082493032; dx=-1.2059501034386015E-5 evalInputDelta=2.715412388454297E-5
Fitness changed from -102.31777331108725 to -102.31777331108725
Static Iteration Total: 14.1567; Orientation: 0.0676; Line Search: 5.6204
Iteration 1 failed. Error: -102.31777331108725
Previous Error: 0.0 -> -102.31777331108725
Retrying iteration 1
Reset training subject: 465957822561200
Corrupt weights measurement
LBFGS Accumulation History: 0 points
th(0)=-102.31437367080643;dx=-1.4827378400037963E-5
END: th(4.641588833612779)=-102.31443340986947; dx=-1.2058290316212905E-5 evalInputDelta=5.9739063033248385E-5
Fitness changed from -102.31777331108725 to -102.31777331108725
Static Iteration Total: 11.2723; Orientation: 0.0672; Line Search: 5.7182
Iteration 2 failed. Error: -102.31777331108725
Previous Error: 0.0 -> -102.31777331108725
Optimization terminated 2
Final threshold in iteration 2: -102.31777331108725 (> -Infinity) after 25.429s (< 5400.000s)

Returns

    -102.31777331108725