Preventing a neural network from growing big