gtda.mapper: Mapper

The module gtda.mapper implements the Mapper algorithm for topological clustering and visualisation.

../_images/mapper_pipeline.svg

Filters

mapper.Projection([columns])

Projection onto specified columns.

mapper.Eccentricity([exponent, metric, …])

Eccentricities of points in a point cloud or abstract metric space.

mapper.Entropy()

Entropy of rows in a two-dimensional array.

Covers

mapper.OneDimensionalCover([kind, …])

Cover of one-dimensional data coming from open overlapping intervals.

mapper.CubicalCover([kind, n_intervals, …])

Cover of multi-dimensional data coming from overlapping hypercubes (technically, parallelopipeds) given by taking products of one-dimensional intervals.

Clustering

mapper.FirstSimpleGap([relative_gap_size, …])

Agglomerative clustering cutting the dendrogram at the first instance of a sufficiently large gap.

mapper.FirstHistogramGap([freq_threshold, …])

Agglomerative clustering with stopping rule given by a histogram-based version of the first gap method, introduced in [1]_.

Pipeline

mapper.pipeline.make_mapper_pipeline([…])

Construct a MapperPipeline object according to the specified Mapper steps.

mapper.pipeline.MapperPipeline(steps[, …])

Subclass of sklearn.pipeline.Pipeline to deal with pipelines generated by make_mapper_pipeline.

Visualization

mapper.visualization.plot_static_mapper_graph(…)

Plotting function for static Mapper graphs.

mapper.visualization.plot_interactive_mapper_graph(…)

Plotting function for interactive Mapper graphs.

Utilities

mapper.utils.decorators.method_to_transform(…)

Wrap a class to add a transform method as an alias to an existing method.

mapper.utils.pipeline.transformer_from_callable_on_rows(func)

Construct a transformer from a callable acting on 1D arrays.