Discriminating between distributions using feed-forward neural networks