This sample code illustrates how to use the trainer.
The example pre-supposes a method to obtain the example set and the network. This example adds two epoch event listeners. One stops training when the error drops below 0.05 and the other stops taining at a maximum of 1000 iterations.