Neural network for optimizing selection cuts on photometry from DOLPHOT