Coding schemes in neural networks learning classification tasks