Evaluate performance while training

How can I evaluate the performance of my network while training?

There’s 2 ways to do this.
(1) Use MultiLayerNetwork/ComputationGraph.evaluate and similar methods
(2) Use EvaluativeListener - https://github.com/eclipse/deeplearning4j/blob/master/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/optimize/listeners/EvaluativeListener.java

You can find more details on evaluation here - https://deeplearning4j.org/docs/latest/deeplearning4j-nn-evaluation