Computation and dissipative dynamical systems in neural networks for classification