Herding the neural networks