testNN function

Train, validate and test artificial neural networks