align: Optimal Transport Alignment

Description Usage Arguments Value Examples

Description

This function aligns an ensemble of partitions with a reference partition by optimal transport.

Usage

1

Arguments

data

– a matrix of horizontally stacked cluster labels. Each column contains cluster labels for all the data points according to one clustering result. The reference clustering result is put in the first column.

Value

a list of alignment result.

distance

Wasserstein distances between the reference partition and the others.

numcls

the number of clusters for each partition.

statistics

average tightness ratio, average coverage ratio, 1-average jaccard distance.

cap

cluster alignment and points based (CAP) separability.

id
cps

covering point set.

match

topological relationship statistics between the reference partition and the others.

Weight

weight matrix

Examples

1
2
3
4
5
6
7
data(sim1)
# the number of clusters.
C = 4
# calculate baseline method for comparison.
kcl = kmeans(sim1$X,C)
# align clustering results for convenience of comparison.
compar = align(cbind(sim1$z,kcl$cluster))

OTclust documentation built on May 6, 2019, 9 a.m.