Learning by a population of perceptrons