The Geometry and Dynamics of Data-driven Modeling