Embeddings#

Two-dimensional maps of patterns: MDS, similarity fusion and landscapes.

  • Classical (Torgerson) MDS and metric MDS by SMACOF (de Leeuw, 1977; Borg & Groenen, 2005), the projections of the NBVFS-CM and NBVFS-TM maps.

  • Similarity network fusion (Wang et al., 2014, Nature Methods 11, 333–337) combines several pattern similarities (confidence, transactions, content).

  • Weighted kernel density landscapes turn a map into a terrain whose peaks are dense families of frequent patterns.

Classical MDS, SMACOF, similarity network fusion, landscapes.

Functions#

align(Y, reference)

Rotate/reflect and center Y to best match reference (orthogonal Procrustes).

classical_mds(D[, n_components])

Classical (Torgerson–Gower) scaling of a dissimilarity matrix.

fuse_similarities(similarities[, weights, ...])

Combine pattern similarities: weighted "mean", "min", "max", "product" or "snf".

landscape(Y[, weights, grid, bandwidth, pad])

Weighted Gaussian kernel density of a 2-D map.

mds(D[, method, n_components])

Embed a dissimilarity matrix; returns (Y, stress).

smacof(D[, n_components, init, max_iter, ...])

Metric MDS by majorization (SMACOF).

snf(similarities[, knn, iterations])

Similarity network fusion of several similarity matrices (values in [0, 1]).