Find the clustering matrix that we would get if we stopped the ARI merging early

intermediateMat(merger, p = 1, n_steps = NULL)

Arguments

merger

the result from having run Dune on the dataset

p

A value between 0 and 1. We stop when the mean ARI has improved by p of the final total improvement. Default to 1 (i.e running the full merging).

n_steps

Alternatively, you can specifiy the number of merging steps to do before stopping.

Value

A matrix with the same dimensions as the currentmMat of the merger argument

Examples

data("clusMat", package = "Dune") merger <- Dune(clusMat = clusMat) head(intermediateMat(merger, n_steps = 1))
#> # A tibble: 6 x 5 #> A B C D E #> <int> <int> <int> <int> <int> #> 1 7 7 7 7 7 #> 2 10 10 10 10 10 #> 3 9 9 9 9 9 #> 4 9 9 9 9 9 #> 5 4 4 4 11 4 #> 6 9 9 9 9 9