A neural network figuring out its limitations