Skip to Main content Skip to Navigation
New interface
Journal articles

Geomstats: A Python Package for Riemannian Geometry in Machine Learning

Abstract : We introduce Geomstats, an open-source Python toolbox for computations and statistics on nonlinear manifolds, such as hyperbolic spaces, spaces of symmetric positive definite matrices, Lie groups of transformations, and many more. We provide object-oriented and extensively unit-tested implementations. Among others, manifolds come equipped with families of Riemannian metrics, with associated exponential and logarithmic maps, geodesics and parallel transport. Statistics and learning algorithms provide methods for estimation, clustering and dimension reduction on manifolds. All associated operations are vectorized for batch computation and provide support for different execution backends, namely NumPy, PyTorch and TensorFlow, enabling GPU acceleration. This paper presents the package, compares it with related libraries and provides relevant code examples. We show that Geomstats provides reliable building blocks to foster research in differential geometry and statistics, and to democratize the use of Riemannian geometry in machine learning applications. The source code is freely available under the MIT license at
Document type :
Journal articles
Complete list of metadata
Contributor : Project-Team Asclepios Connect in order to contact the contributor
Submitted on : Monday, December 21, 2020 - 12:27:36 PM
Last modification on : Wednesday, November 23, 2022 - 10:16:08 AM


Files produced by the author(s)


Distributed under a Creative Commons Attribution 4.0 International License


  • HAL Id : hal-02536154, version 2


Nina Miolane, Nicolas Guigui, Alice Le Brigant, Johan Mathe, Benjamin Hou, et al.. Geomstats: A Python Package for Riemannian Geometry in Machine Learning. Journal of Machine Learning Research, 2020, 21 (223), pp.1-9. ⟨hal-02536154v2⟩



Record views


Files downloads