By-passing the Kohn-Sham equations with machine learning