BasicOptimizer.scala:89 executed in 186.05 seconds (1.322 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: 7331210699269
Reset training subject: 7343950431964
Adding measurement 1703ce5 to history. Total: 0
LBFGS Accumulation History: 1 points
Constructing line search parameters: GD+Trust
th(0)=-45.165327191352844;dx=-5.664722965799043E-7
Armijo: th(2.154434690031884)=-45.1653271317482; dx=-3.701725278472266E-7 evalInputDelta=-5.9604644775390625E-8
Armijo: th(1.077217345015942)=-45.16532647609711; dx=-3.7018531445458464E-7 evalInputDelta=-7.152557373046875E-7
Armijo: th(0.3590724483386473)=-45.1653271317482; dx=-3.701604488360595E-7 evalInputDelta=-5.9604644775390625E-8
Armijo: th(0.08976811208466183)=-45.165327191352844; dx=-3.701540226987688E-7 evalInputDelta=0.0
Armijo: th(0.017953622416932366)=-45.165327191352844; dx=-3.701631195541204E-7 evalInputDelta=0.0
END: th(0.002992270402822061)=-45.165327191352844; dx=-3.701097288194547E-7 evalInputDelta=0.0
Fitness changed from -45.165327191352844 to -45.165327191352844
Static Iteration Total: 124.3040; Orientation: 0.2071; Line Search: 86.1252
Iteration 1 failed. Error: -45.165327191352844
Previous Error: 0.0 -> -45.165327191352844
Retrying iteration 1
Reset training subject: 7455514985006
Adding measurement 74768dda to history. Total: 0
LBFGS Accumulation History: 1 points
th(0)=-45.165327191352844;dx=-5.664552795103292E-7
Armijo: th(0.006446651157795527)=-45.165327191352844; dx=-3.7017952283400464E-7 evalInputDelta=0.0
END: th(0.0032233255788977635)=-45.165327191352844; dx=-3.701590074116361E-7 evalInputDelta=0.0
Fitness changed from -45.165327191352844 to -45.165327191352844
Static Iteration Total: 61.7436; Orientation: 0.0740; Line Search: 36.8189
Iteration 2 failed. Error: -45.165327191352844
Previous Error: 0.0 -> -45.165327191352844
Optimization terminated 2
Final threshold in iteration 2: -45.165327191352844 (> -Infinity) after 186.048s (< 5400.000s)

Returns

    -45.165327191352844