From Google’s auto-sorting Inbox, to Microsoft’s unparalleled image recognition, we owe machine learning our gratitude for many of the magical experiences lurking inside software. But how does it actually work? How can you actually train a computer to discern the nuances of data?