A training-time analysis of robustness in feed-forward neural networks