Predictive Coding in Machines and Brains