BasicOptimizer.scala:89 executed in 111.68 seconds (0.903 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: 8711148755384
Reset training subject: 8723537201667
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
th(0)=-37.3604052066803;dx=-1.3488457568504207E-6
END: th(2.154434690031884)=-37.36040881276131; dx=-1.1713728826563294E-6 evalInputDelta=3.606081008911133E-6
Fitness changed from -37.48044592142105 to -37.48044592142105
Static Iteration Total: 62.0242; Orientation: 0.0527; Line Search: 24.5423
Iteration 1 failed. Error: -37.48044592142105
Previous Error: 0.0 -> -37.48044592142105
Retrying iteration 1
Reset training subject: 8773173175030
Corrupt weights measurement
LBFGS Accumulation History: 0 points
th(0)=-37.3604052066803;dx=-1.348670110309613E-6
END: th(4.641588833612779)=-37.36041113734245; dx=-1.17123386490119E-6 evalInputDelta=5.930662155151367E-6
Fitness changed from -37.48044592142105 to -37.48044592142105
Static Iteration Total: 49.6559; Orientation: 0.0536; Line Search: 24.8158
Iteration 2 failed. Error: -37.48044592142105
Previous Error: 0.0 -> -37.48044592142105
Optimization terminated 2
Final threshold in iteration 2: -37.48044592142105 (> -Infinity) after 111.680s (< 5400.000s)

Returns

    -37.48044592142105