Machine learning for global optimization