AUTOMATING CONSTRUCTION AND SELECTION OF A NEURAL NETWORK USING STOCHASTIC OPTIMIZATION