On-demand machine learning fi