Welcome to giotto’s API reference!

giotto.homology: Persistent homology

The module giotto.homology implements transformers to modify metric spaces or generate persistence diagrams.

homology.VietorisRipsPersistence([metric, …])

Persistence diagrams resulting from Vietoris-Rips filtrations.

homology.ConsistentRescaling([metric, …])

Rescaling of distances between pairs of points by the geometric mean of the distances to the respective \(k\)-th nearest neighbours.

giotto.diagrams: Persistence diagrams

The module giotto.diagrams implements transformers to preprocess persistence diagrams or extract features from them.

diagrams.ForgetDimension()

Replaces all homology dimensions in persistence diagrams with numpy.inf.

diagrams.Scaler([metric, metric_params, …])

Linear scaling of persistence diagrams.

diagrams.Filtering([homology_dimensions, …])

Filtering of persistence diagrams.

diagrams.PairwiseDistance([metric, …])

Distances between pairs of persistence diagrams, constructed from the distances between their respective subdiagrams with constant homology dimension.

diagrams.Amplitude([metric, metric_params, …])

Amplitudes of persistence diagrams, constructed from the amplitudes of their subdiagrams with constant homology dimension.

diagrams.PersistenceEntropy([n_jobs])

Persistence entropies of persistence diagrams.

diagrams.PersistenceLandscape([n_layers, …])

Persistence landscapes of persistence diagrams.

diagrams.BettiCurve([n_values, n_jobs])

Betti curves of persistence diagrams.

diagrams.HeatKernel(sigma[, n_values, n_jobs])

Convolution of persistence diagrams with a Gaussian kernel.

giotto.time_series: Time series

The module giotto.time_series implements transformers to preprocess time series or embed them in a higher dimensional space for persistent homology.

time_series.Resampler([period])

Time series resampling at regular intervals.

time_series.Stationarizer([operation])

Methods for stationarizing time series data.

time_series.TakensEmbedding([…])

Representation of a univariate time series as a time series of point clouds.

time_series.SlidingWindow([width, stride])

Sliding windows onto the data.

time_series.PermutationEntropy([n_jobs])

Entropies from sets of permutations arg-sorting rows in arrays.

time_series.PearsonDissimilarity([…])

Pearson dissimilarities from collections of multivariate time series.

time_series.Labeller([width, func, …])

Target creation from sliding windows over a time series.

giotto.graphs: Graphs

The module giotto.graphs implements transformers to create graphs or extract metric spaces from graphs.

graphs.TransitionGraph([func, func_params, …])

Undirected transition graphs from arrays of time-evolving states.

graphs.KNeighborsGraph([n_neighbors, …])

Adjacency matrices of k-nearest neighbor graphs.

graphs.GraphGeodesicDistance([n_jobs])

Distance matrices arising from geodesic distances on graphs.

giotto.base: Base

Implements a TransformerResamplerMixin for transformers that have a resample method.

base.TransformerResamplerMixin

Mixin class for all transformers-resamplers in giotto-learn.

giotto.pipeline: Pipeline

The module giotto.pipeline extends scikit-learn’s module by defining Pipelines that include TransformerResamplers.

pipeline.Pipeline(steps[, memory, verbose])

Pipeline of transforms and resamples with a final estimator.

pipeline.make_pipeline(\*steps, \*\*kwargs)

Construct a Pipeline from the given estimators.

giotto.meta_transformers: Convenience pipelines

The module giotto.meta_transformers implements convenience giotto.pipeline.Pipeline transformers for direct topological feature generation.

meta_transformers.EntropyGenerator([metric, …])

Persistence entropies directly from point clouds.

meta_transformers.BettiCurveGenerator([…])

Meta transformer returning Betti curves directly from point clouds.

meta_transformers.LandscapeGenerator([…])

Meta transformer returning persistence landscapes directly from point clouds.

giotto.utils: Validation

The module giotto.utils implements hyperparameter and input validation functions.

utils.check_diagram(X)

Input validation on a diagram

utils.validate_params(parameters, references)

utils.validate_metric_params(metric, …)