Training neural pattern classifiers with a mean field theory learning algorithm