BasicOptimizer.scala:89 executed in 112.46 seconds (0.600 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: 8432130132866
Reset training subject: 8444611560278
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
th(0)=-39.69340369105339;dx=-1.0659002026818564E-6
END: th(2.154434690031884)=-39.69340580701828; dx=-7.454429403093246E-7 evalInputDelta=2.115964889526367E-6
Fitness changed from -39.756613343954086 to -39.756613343954086
Static Iteration Total: 62.2782; Orientation: 0.0522; Line Search: 24.6536
Iteration 1 failed. Error: -39.756613343954086
Previous Error: 0.0 -> -39.756613343954086
Retrying iteration 1
Reset training subject: 8494408433277
Corrupt weights measurement
LBFGS Accumulation History: 0 points
th(0)=-39.69340369105339;dx=-1.0659008928343079E-6
END: th(4.641588833612779)=-39.69340777397156; dx=-7.454088838018121E-7 evalInputDelta=4.082918167114258E-6
Fitness changed from -39.756613343954086 to -39.756613343954086
Static Iteration Total: 50.1833; Orientation: 0.1024; Line Search: 24.7728
Iteration 2 failed. Error: -39.756613343954086
Previous Error: 0.0 -> -39.756613343954086
Optimization terminated 2
Final threshold in iteration 2: -39.756613343954086 (> -Infinity) after 112.462s (< 5400.000s)

Returns

    -39.756613343954086