Predictive coding under the free-energy principle