letting you use a validation set to see error plotted when training
feed forward nn