Visualization#
Static visualizations (matplotlib). Every function returns its Axes or
Figure and accepts ax= where a single panel is drawn.
Matplotlib views of series, segmentations, alignments, clusterings, representations and evaluations.
Functions#
|
Small multiples: one panel per variable. |
|
Series with the segments shaded (state colours if the segmentation has state labels), change points as vertical lines, optional true change points (dashed, at the top) and segment fits ( |
|
Two panels: the series with the crisp segments, and the fuzzy memberships of the segments along time. |
|
State timeline: one coloured bar per segment. |
|
A change profile (ClaSP score, FLUSS arc curve, BOCPD change probability, boundary agreement, similarity) with the detected change points. |
|
Run-length posterior of |
|
Total cost against the number of segments, with the relative reduction rate \(RR(c)\) as bars on a second axis (Bankó, 2015, Figures 3.3 and 3.6). |
|
Segmentogram: every level of a bottom-up merge hierarchy as one row (top: one segment, bottom: |
|
Consensus segmentation: the change points of every member (one row each) above the boundary agreement profile. |
|
Hotelling \(T^2\) and \(Q\) of a PCA model along the series with their control limits. |
|
Heatmap of the loadings of one principal component of every segment (rows: variables, columns: segments): how the correlation structure changes from segment to segment. |
|
Stacked bars of the variable contributions to every change point (output of |
|
Regime transition network ( |
|
The two series ( |
|
Local (or accumulated) cost matrix with the optimal warping path and the two series along the axes. |
|
Expected alignment matrix of soft-DTW (probability that two samples are aligned) with the hard DTW path on top. |
|
Warping functions of one or several paths, normalized to [0, 1], against the diagonal. |
|
Segment-level alignment of correlation-based DTW: both series with their segments as coloured bands and the aligned segments connected at their centres. |
|
Members of a cluster (grey) and their (DBA or soft-DTW) average. |
|
Sammon mapping (Sammon, 1969) of a distance matrix by Newton-type iterations; returns |
|
Fuzzy Sammon mapping (Feil, Balaskó and Abonyi, 2007) for relational fuzzy clusterings: the data are mapped so that their distances to the cluster prototypes (medoids) are preserved with weights \(u_{ik}^m\); returns |
|
Dendrogram of a hierarchical clustering. |
|
One panel per cluster: members (thin, grey), their mean +- standard deviation band (resampled to a common length) and the centre if given ( |
|
Distance matrix heatmap, ordered by labels ( |
|
2-D map of a distance matrix by Sammon mapping, metric MDS or t-SNE, coloured by labels. |
|
Series and its piecewise linear approximation; each segment is annotated with its slope angle. |
|
z-normalized series, its PAA and the SAX symbols with the Gaussian breakpoints. |
|
Series with its qualitative episodes: coloured bands labelled by the primitive codes and, above them, the triangular glyphs of the representation of Cheung and Stephanopoulos (1990). |
|
Recurrence plot (thresholded or distance matrix). |
|
Series as bars with its visibility arcs drawn above; if the graph is zone labelled ( |
|
Critical difference diagram (Demšar, 2006): methods on the average rank axis, with bars joining methods whose ranks differ by less than the critical difference. |
|
Precision against recall levels for several measures (Bankó, 2015, Figures 3.4--3.9); |
|
Heatmap of a data set x method table (e.g. |
|
Boundary frequency under perturbations ( |
|
One-page summary of a segmentation: the segmented series, the state timeline, the cost curve (if a merge tree is given) and the variable contributions to the changes. |
Constants#
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
Built-in mutable sequence. |
|
Built-in mutable sequence. |