train convnet for x iterations