This is how the Hobbit director used machine learning to rewrite the story of the Beatles