BasicOptimizer.scala:89 executed in 23.09 seconds (0.189 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: 30985096768700
Reset training subject: 30987636903400
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
th(0)=-72.03784505151111;dx=-4.822726815402658E-6
END: th(2.154434690031884)=-72.03785217670297; dx=-3.96880414527662E-6 evalInputDelta=7.125191856971469E-6
Fitness changed from -72.05007796788556 to -72.05007796788556
Static Iteration Total: 12.9145; Orientation: 0.0384; Line Search: 5.1181
Iteration 1 failed. Error: -72.05007796788556
Previous Error: 0.0 -> -72.05007796788556
Retrying iteration 1
Reset training subject: 30998011446300
Corrupt weights measurement
LBFGS Accumulation History: 0 points
th(0)=-72.03784505151111;dx=-4.823042594136498E-6
END: th(4.641588833612779)=-72.03786405202116; dx=-3.969036313999294E-6 evalInputDelta=1.9000510050659614E-5
Fitness changed from -72.05007796788556 to -72.05007796788556
Static Iteration Total: 10.1796; Orientation: 0.0342; Line Search: 5.1277
Iteration 2 failed. Error: -72.05007796788556
Previous Error: 0.0 -> -72.05007796788556
Optimization terminated 2
Final threshold in iteration 2: -72.05007796788556 (> -Infinity) after 23.094s (< 5400.000s)

Returns

    -72.05007796788556