TemporalMapper API

Classes

TemporalMapper

Wrapper over density-based Mapper for Temporal Topic Modelling

Mapper

sklearn compliant density-based Mapper estimator.

MapperClusterer

Mapper based sklearn compliant clusterer.

Plotting Functions

sliceograph

Visualize all the slices in the kerneled cover of a TemporalMapper, requires Plotly.

view_gomic

Visualize the gomic of the Mapper object

growth_map

Compute a stock-market style treemap of relative growth of topics.

centroid_datamap

Plot the temporal graph in 2d with vertices at their cluster centroids.

squarify_text

Make a string more square by adding newlines

generate_keyword_labels

Using a bag of words corresponding to each data point, get top n_words informative keywords for each cluster

Temporal Kernels

temporalmapper.kernels.gaussian(t0, t, density, binwidth, epsilon=0.1, params=None)

Returns weights for samples at times t for a Gaussian kernel centered at t0

temporalmapper.kernels.square(t0, t, density, binwidth, epsilon=0.1, params=None)

Returns weights for samples at times t for a square kernel centered at t0

temporalmapper.kernels.triangle(t0, t, density, binwidth, epsilon=0.1, params=None)

Returns weights for samples at times t for a triangle kernel centered at t0