From 57b86b2665cd0e35d18b697577b00c604212e369 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Fri, 15 Nov 2019 23:09:29 +0100 Subject: Token documentation --- src/python/doc/representations.rst | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/python/doc/representations.rst') diff --git a/src/python/doc/representations.rst b/src/python/doc/representations.rst index 3db1c95a..a137a035 100644 --- a/src/python/doc/representations.rst +++ b/src/python/doc/representations.rst @@ -2,9 +2,22 @@ .. To get rid of WARNING: document isn't included in any toctree -=================================== -Representations reference manual -=================================== +====================== +Representations manual +====================== + +.. include:: representations_sum.inc + +This module, originally named sklearn_tda, aims at bridging the gap between persistence diagrams and machine learning tools, in particular scikit-learn. It provides tools, using the scikit-learn standard interface, to compute distances and kernels on diagrams, and to convert diagrams into vectors. + +A diagram is represented as a numpy array of shape (n,2), as can be obtained from `SimplexTree.persistence_intervals_in_dimension` for instance. Points at infinity are represented as a numpy array of shape (n,1), storing only the birth time. + +A small example is provided + +.. only:: builder_html + + * :download:`diagram_vectorizations_distances_kernels.py <../example/diagram_vectorizations_distances_kernels.py>` + Preprocessing ------------- -- cgit v1.2.3