Algebraic Information Geometry for Learning Machines with Singularities