Geometry of Friston’s active inference