Deep temporal models and active inference