Stochastic Optimization Methods for Fitting Polyclass and Feed-Forward Neural Network Models