BasicOptimizer.scala:89 executed in 7.84 seconds (0.052 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
Reset training subject: 27994155319800
Reset training subject: 27996922424900
Corrupt weights measurement
LBFGS Accumulation History: 0 points
Constructing line search parameters: GD+Trust
Error java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.simiacryptus.util.Util.throwException(Util.java:502)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:57)
at com.simiacryptus.mindseye.opt.IterativeTrainer.run(IterativeTrainer.java:317)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$8(BasicOptimizer.scala:121)
at com.simiacryptus.notebook.MarkdownNotebookOutput.lambda$eval$dc58be99$1(MarkdownNotebookOutput.java:657)
at com.simiacryptus.util.test.SysOutInterceptor.withOutput(SysOutInterceptor.java:102)
at com.simiacryptus.notebook.MarkdownNotebookOutput.eval(MarkdownNotebookOutput.java:649)
at com.simiacryptus.notebook.NotebookOutput.eval(NotebookOutput.java:125)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$7(BasicOptimizer.scala:89)
at com.simiacryptus.mindseye.art.util.ArtUtil$.$anonfun$withTrainingMonitor$2(ArtUtil.scala:243)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.ArtUtil$.withTrainingMonitor(ArtUtil.scala:242)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$6(BasicOptimizer.scala:125)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:126)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:84)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$3(BasicOptimizer.scala:58)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$2(BasicOptimizer.scala:57)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:56)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:47)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn(ArtSetup.scala:289)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn$(ArtSetup.scala:237)
at com.simiacryptus.mindseye.art.util.RotorArt.paint_aspectFn(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8(ZoomingRotor.scala:686)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8$adapted(ZoomingRotor.scala:677)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$7(ZoomingRotor.scala:677)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.paint(ZoomingRotor.scala:688)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9(ZoomingRotor.scala:639)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9$adapted(ZoomingRotor.scala:637)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
at scala.collection.immutable.Range.foreach(Range.scala:158)
at scala.collection.TraversableLike.map(TraversableLike.scala:238)
at scala.collection.TraversableLike.map$(TraversableLike.scala:231)
at scala.collection.AbstractTraversable.map(Traversable.scala:108)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$8(ZoomingRotor.scala:637)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionAB(ZoomingRotor.scala:633)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionLinearSeq$1(ZoomingRotor.scala:593)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:841)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:592)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:586)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$postConfigure$13(ZoomingRotor.scala:553)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.postConfigure(ZoomingRotor.scala:552)
at com.simiacryptus.sparkbook.InteractiveSetup.$anonfun$apply$1(InteractiveSetup.scala:52)
at com.simiacryptus.util.CodeUtil.withRefLeakMonitor(CodeUtil.java:394)
at com.simiacryptus.sparkbook.InteractiveSetup.apply(InteractiveSetup.scala:51)
at com.simiacryptus.sparkbook.InteractiveSetup.apply$(InteractiveSetup.scala:37)
at com.simiacryptus.mindseye.art.util.RotorArt.com$simiacryptus$mindseye$art$util$ArtSetup$$super$apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply(ArtSetup.scala:377)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply$(ArtSetup.scala:373)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.sparkbook.NotebookRunner.get(NotebookRunner.scala:184)
at com.simiacryptus.sparkbook.NotebookRunner.get$(NotebookRunner.scala:174)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.get(ZoomingRotor.scala:46)
at com.simiacryptus.sparkbook.util.LocalRunner.main(LocalRunner.scala:37)
at com.simiacryptus.sparkbook.util.LocalRunner.main$(LocalRunner.scala:28)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.main(ZoomingRotor.scala:46)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor.main(ZoomingRotor.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.simiacryptus.ref.lang.RefUtil$RefWrapperHandler.invoke(RefUtil.java:238)
at com.sun.proxy.$Proxy38.get(Unknown Source)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:54)
... 77 more
Caused by: java.lang.AssertionError
at com.simiacryptus.mindseye.lang.Delta.accumulate(Delta.java:126)
at com.simiacryptus.mindseye.lang.DeltaSet.lambda$accumulate$1(DeltaSet.java:104)
at com.simiacryptus.ref.wrappers.RefStream.lambda$forEach$25(RefStream.java:354)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.simiacryptus.ref.wrappers.StreamWrapper.forEach(StreamWrapper.java:129)
at com.simiacryptus.ref.wrappers.RefStream.forEach(RefStream.java:354)
at com.simiacryptus.mindseye.lang.DeltaSet.accumulate(DeltaSet.java:103)
at com.simiacryptus.mindseye.opt.orient.TrustRegionStrategy$TrustRegionCursor.step(TrustRegionStrategy.java:259)
at com.simiacryptus.mindseye.opt.line.FailsafeLineSearchCursor.step(FailsafeLineSearchCursor.java:112)
at com.simiacryptus.mindseye.opt.line.ArmijoWolfeSearch.step(ArmijoWolfeSearch.java:252)
at com.simiacryptus.mindseye.opt.IterativeTrainer.step(IterativeTrainer.java:432)
at com.simiacryptus.mindseye.opt.IterativeTrainer.lambda$run$600f52c0$1(IterativeTrainer.java:318)
... 83 more
Final threshold in iteration 1: -79.48712857233481 (> -Infinity) after 7.840s (< 5400.000s)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.simiacryptus.util.Util.throwException(Util.java:502)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:57)
at com.simiacryptus.mindseye.opt.IterativeTrainer.run(IterativeTrainer.java:317)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$8(BasicOptimizer.scala:121)
at com.simiacryptus.notebook.MarkdownNotebookOutput.lambda$eval$dc58be99$1(MarkdownNotebookOutput.java:657)
at com.simiacryptus.util.test.SysOutInterceptor.withOutput(SysOutInterceptor.java:102)
at com.simiacryptus.notebook.MarkdownNotebookOutput.eval(MarkdownNotebookOutput.java:649)
at com.simiacryptus.notebook.NotebookOutput.eval(NotebookOutput.java:125)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$7(BasicOptimizer.scala:89)
at com.simiacryptus.mindseye.art.util.ArtUtil$.$anonfun$withTrainingMonitor$2(ArtUtil.scala:243)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.ArtUtil$.withTrainingMonitor(ArtUtil.scala:242)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$6(BasicOptimizer.scala:125)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:126)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:84)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$3(BasicOptimizer.scala:58)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$2(BasicOptimizer.scala:57)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:56)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:47)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn(ArtSetup.scala:289)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn$(ArtSetup.scala:237)
at com.simiacryptus.mindseye.art.util.RotorArt.paint_aspectFn(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8(ZoomingRotor.scala:686)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8$adapted(ZoomingRotor.scala:677)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$7(ZoomingRotor.scala:677)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.paint(ZoomingRotor.scala:688)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9(ZoomingRotor.scala:639)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9$adapted(ZoomingRotor.scala:637)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
at scala.collection.immutable.Range.foreach(Range.scala:158)
at scala.collection.TraversableLike.map(TraversableLike.scala:238)
at scala.collection.TraversableLike.map$(TraversableLike.scala:231)
at scala.collection.AbstractTraversable.map(Traversable.scala:108)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$8(ZoomingRotor.scala:637)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionAB(ZoomingRotor.scala:633)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionLinearSeq$1(ZoomingRotor.scala:593)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:841)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:592)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:586)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$postConfigure$13(ZoomingRotor.scala:553)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.postConfigure(ZoomingRotor.scala:552)
at com.simiacryptus.sparkbook.InteractiveSetup.$anonfun$apply$1(InteractiveSetup.scala:52)
at com.simiacryptus.util.CodeUtil.withRefLeakMonitor(CodeUtil.java:394)
at com.simiacryptus.sparkbook.InteractiveSetup.apply(InteractiveSetup.scala:51)
at com.simiacryptus.sparkbook.InteractiveSetup.apply$(InteractiveSetup.scala:37)
at com.simiacryptus.mindseye.art.util.RotorArt.com$simiacryptus$mindseye$art$util$ArtSetup$$super$apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply(ArtSetup.scala:377)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply$(ArtSetup.scala:373)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.sparkbook.NotebookRunner.get(NotebookRunner.scala:184)
at com.simiacryptus.sparkbook.NotebookRunner.get$(NotebookRunner.scala:174)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.get(ZoomingRotor.scala:46)
at com.simiacryptus.sparkbook.util.LocalRunner.main(LocalRunner.scala:37)
at com.simiacryptus.sparkbook.util.LocalRunner.main$(LocalRunner.scala:28)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.main(ZoomingRotor.scala:46)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor.main(ZoomingRotor.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.simiacryptus.ref.lang.RefUtil$RefWrapperHandler.invoke(RefUtil.java:238)
at com.sun.proxy.$Proxy38.get(Unknown Source)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:54)
... 77 more
Caused by: java.lang.AssertionError
at com.simiacryptus.mindseye.lang.Delta.accumulate(Delta.java:126)
at com.simiacryptus.mindseye.lang.DeltaSet.lambda$accumulate$1(DeltaSet.java:104)
at com.simiacryptus.ref.wrappers.RefStream.lambda$forEach$25(RefStream.java:354)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.simiacryptus.ref.wrappers.StreamWrapper.forEach(StreamWrapper.java:129)
at com.simiacryptus.ref.wrappers.RefStream.forEach(RefStream.java:354)
at com.simiacryptus.mindseye.lang.DeltaSet.accumulate(DeltaSet.java:103)
at com.simiacryptus.mindseye.opt.orient.TrustRegionStrategy$TrustRegionCursor.step(TrustRegionStrategy.java:259)
at com.simiacryptus.mindseye.opt.line.FailsafeLineSearchCursor.step(FailsafeLineSearchCursor.java:112)
at com.simiacryptus.mindseye.opt.line.ArmijoWolfeSearch.step(ArmijoWolfeSearch.java:252)
at com.simiacryptus.mindseye.opt.IterativeTrainer.step(IterativeTrainer.java:432)
at com.simiacryptus.mindseye.opt.IterativeTrainer.lambda$run$600f52c0$1(IterativeTrainer.java:318)
... 83 more
MarkdownNotebookOutput.java:908 executed in 0.00 seconds (0.000 gc):
throw e;
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.simiacryptus.util.Util.throwException(Util.java:502)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:57)
at com.simiacryptus.mindseye.opt.IterativeTrainer.run(IterativeTrainer.java:317)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$8(BasicOptimizer.scala:121)
at com.simiacryptus.notebook.MarkdownNotebookOutput.lambda$eval$dc58be99$1(MarkdownNotebookOutput.java:657)
at com.simiacryptus.util.test.SysOutInterceptor.withOutput(SysOutInterceptor.java:102)
at com.simiacryptus.notebook.MarkdownNotebookOutput.eval(MarkdownNotebookOutput.java:649)
at com.simiacryptus.notebook.NotebookOutput.eval(NotebookOutput.java:125)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$7(BasicOptimizer.scala:89)
at com.simiacryptus.mindseye.art.util.ArtUtil$.$anonfun$withTrainingMonitor$2(ArtUtil.scala:243)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.ArtUtil$.withTrainingMonitor(ArtUtil.scala:242)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$6(BasicOptimizer.scala:125)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:126)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:84)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$3(BasicOptimizer.scala:58)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$2(BasicOptimizer.scala:57)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:56)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:47)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn(ArtSetup.scala:289)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn$(ArtSetup.scala:237)
at com.simiacryptus.mindseye.art.util.RotorArt.paint_aspectFn(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8(ZoomingRotor.scala:686)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8$adapted(ZoomingRotor.scala:677)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$7(ZoomingRotor.scala:677)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.paint(ZoomingRotor.scala:688)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9(ZoomingRotor.scala:639)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9$adapted(ZoomingRotor.scala:637)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
at scala.collection.immutable.Range.foreach(Range.scala:158)
at scala.collection.TraversableLike.map(TraversableLike.scala:238)
at scala.collection.TraversableLike.map$(TraversableLike.scala:231)
at scala.collection.AbstractTraversable.map(Traversable.scala:108)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$8(ZoomingRotor.scala:637)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionAB(ZoomingRotor.scala:633)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionLinearSeq$1(ZoomingRotor.scala:593)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:841)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:592)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:586)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$postConfigure$13(ZoomingRotor.scala:553)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.postConfigure(ZoomingRotor.scala:552)
at com.simiacryptus.sparkbook.InteractiveSetup.$anonfun$apply$1(InteractiveSetup.scala:52)
at com.simiacryptus.util.CodeUtil.withRefLeakMonitor(CodeUtil.java:394)
at com.simiacryptus.sparkbook.InteractiveSetup.apply(InteractiveSetup.scala:51)
at com.simiacryptus.sparkbook.InteractiveSetup.apply$(InteractiveSetup.scala:37)
at com.simiacryptus.mindseye.art.util.RotorArt.com$simiacryptus$mindseye$art$util$ArtSetup$$super$apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply(ArtSetup.scala:377)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply$(ArtSetup.scala:373)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.sparkbook.NotebookRunner.get(NotebookRunner.scala:184)
at com.simiacryptus.sparkbook.NotebookRunner.get$(NotebookRunner.scala:174)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.get(ZoomingRotor.scala:46)
at com.simiacryptus.sparkbook.util.LocalRunner.main(LocalRunner.scala:37)
at com.simiacryptus.sparkbook.util.LocalRunner.main$(LocalRunner.scala:28)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.main(ZoomingRotor.scala:46)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor.main(ZoomingRotor.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.simiacryptus.ref.lang.RefUtil$RefWrapperHandler.invoke(RefUtil.java:238)
at com.sun.proxy.$Proxy38.get(Unknown Source)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:54)
... 77 more
Caused by: java.lang.AssertionError
at com.simiacryptus.mindseye.lang.Delta.accumulate(Delta.java:126)
at com.simiacryptus.mindseye.lang.DeltaSet.lambda$accumulate$1(DeltaSet.java:104)
at com.simiacryptus.ref.wrappers.RefStream.lambda$forEach$25(RefStream.java:354)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.simiacryptus.ref.wrappers.StreamWrapper.forEach(StreamWrapper.java:129)
at com.simiacryptus.ref.wrappers.RefStream.forEach(RefStream.java:354)
at com.simiacryptus.mindseye.lang.DeltaSet.accumulate(DeltaSet.java:103)
at com.simiacryptus.mindseye.opt.orient.TrustRegionStrategy$TrustRegionCursor.step(TrustRegionStrategy.java:259)
at com.simiacryptus.mindseye.opt.line.FailsafeLineSearchCursor.step(FailsafeLineSearchCursor.java:112)
at com.simiacryptus.mindseye.opt.line.ArmijoWolfeSearch.step(ArmijoWolfeSearch.java:252)
at com.simiacryptus.mindseye.opt.IterativeTrainer.step(IterativeTrainer.java:432)
at com.simiacryptus.mindseye.opt.IterativeTrainer.lambda$run$600f52c0$1(IterativeTrainer.java:318)
... 83 more