Plotting: .pl#

The ggml_ot.pl module provides a collection of functions to visualize distance matrices, embeddings, distributions, and classification results. These plotting functions are designed to work with ggml_ot datasets and outputs, offering options for dimensionality reduction, plotting techniques, and customization of the visualizations.

Patient-level plots#

pl.clustermap

Plot a hierarchically-clustered heatmap with sample annotations.

pl.embedding

Plot a 2-D embedding of a precomputed distance matrix.

pl.clustermap_embedding

Plot a clustermap, an embedding, or both side-by-side.

Evaluation#

pl.table

Display a DataFrame of evaluation metrics as a formatted table.

pl.confusion_matrix

Plot a confusion-matrix heatmap.

pl.contour_hyperparams

Contour plot of grid-search results over two hyperparameters.

Subspace / GMM#

pl.scatter_subspace

2-D scatter plot of points in a subspace.

pl.scatter_3d

3-D scatter plot.

pl.ellipse_overlay

Draw GMM covariance ellipses onto an existing axes.

pl.panel_subspaces

Three-panel figure: mixed 3-D | rotated 2-D | clean 2-D (or learned).

pl.plot_gmm_panel

2-D scatter with optional GMM ellipse overlay.

pl.panel_synth_dataset

Multi-panel figure for a synthetic-GMM TripletDataset.