Classification with a multilayer perceptron