How to automatically scale your machine learning predictions