Stability of the replica symmetric solution in diluted perceptron learning