Using machine learning to see in the dark