A general feed-forward neural network.