Geometry, topology and machine learning