Appendix C
The example gallery
Every algorithm of the toolbox has at least one runnable example script. The scripts generate their own data, explain the method in their comments, and end with a study of the main parameters. The same scripts produce the gallery of the online documentation, the Jupyter notebooks, and every computed figure and code listing of this book. The tables below list them by folder of examples/, with the first figure of the book that each script produced.
C.1 Graphs from data
Folder examples/01_graphs/. The methods are described in chapter 2.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_proximity_graphs.py |
Proximity graphs and their nesting | |
|
plot_02_geodesic_distances.py |
Geodesic distances on a neighborhood graph | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.2 Vector quantization and topology learning
Folder examples/02_topology/. The methods are described in chapter 3.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_neural_gas.py |
Neural gas learns the shape of the data | |
|
plot_02_trn.py |
Topology representing networks | |
|
plot_03_growing_networks.py |
Growing networks: GNG, GWR, DTRN and WINN | |
|
plot_04_edge_lifetime.py |
Edge lifetime decides which links survive | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.3 Clustering with spanning trees
Folder examples/03_trees/. The methods are described in chapter 4.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_mst_zahn.py |
Zahn’s MST clustering and the chaining effect | |
|
plot_02_hybrid_mst_gg.py |
Hybrid MST–Gath–Geva clustering cuts the chain | |
|
plot_03_curves_initialization.py |
Volume-based splitting as initialization of Gaussian mixtures | |
|
plot_04_iris.py |
Hybrid MST–GG on the Iris data | |
|
plot_05_hdbscan.py |
HDBSCAN*: density-corrected spanning trees | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.4 Shared neighbors, densities, and communities
Folder examples/04_neighborhoods/. The methods are described in chapter 5.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_jarvis_patrick.py |
Jarvis–Patrick clustering and its two integer parameters | |
|
plot_02_fuzzy_similarity.py |
Fuzzy neighborhood similarity: MDS, VAT and dendrogram | |
|
plot_03_wine.py |
Fuzzy neighborhood distances on the Wine data | |
|
plot_04_snn_density_peaks.py |
Shared-neighbor density and density peaks | |
|
plot_05_spectral_communities.py |
Spectral clustering and graph communities | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.5 Visual assessment and the quality of maps
Folder examples/05_assessment/. The methods are described in chapter 6.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_vat_ivat.py |
VAT and iVAT images | |
|
plot_02_quality_measures.py |
Measuring the quality of a map | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.6 Distance- and neighborhood-preserving maps
Folder examples/06_classical_maps/. The methods are described in chapter 7.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_distance_maps.py |
PCA, Sammon mapping and MDS | |
|
plot_02_neighborhood_maps.py |
LPP, the self-organizing map and incremental grid growing | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.7 Topology-preserving maps
Folder examples/07_topology_maps/. The methods are described in chapter 8.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_isomap_isotop_cda.py |
Isomap, Isotop and curvilinear distance analysis | |
|
plot_02_ovi_gnlp_trnmap.py |
OVI-NG, GNLP-NG and TRNMap | |
|
plot_03_component_planes.py |
TRNMap component planes | |
|
plot_04_number_of_nodes.py |
Number of nodes in TRNMap and the mapping quality | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.8 Neighbor-graph embeddings
Folder examples/08_neighbor_embedding/. The methods are described in chapter 9.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_spectral_embeddings.py |
Laplacian eigenmaps and diffusion maps | |
|
plot_02_umap_tsne.py |
UMAP and t-SNE on handwritten digits | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
C.9 Comparative studies
Folder examples/09_case_studies/. The methods are described in chapter 10.
|
Script |
Topic |
Figure |
|
|
||
|
plot_01_combinations.py |
Combining quantization, distance and mapping | |
|
plot_02_compare_maps.py |
Quantitative comparison of topology-based maps | |
|
plot_03_real_data.py |
Mapping real data: Wine and Wisconsin breast cancer | |
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||