Prospects for quantum advantage in machine learning from the representability of functions