Optimize Cost for Machine Learning in a Multi-Cloud Environment