Machine learning and stochastic control