Classification with a multi-layer perceptron