intermediateMat {Dune} | R Documentation |
Find the clustering matrix that we would get if we stopped the ARI merging early
intermediateMat(merger, p = 1, average_n = NULL, n_steps = NULL)
merger |
the result from having run |
p |
A value between 0 and 1. We stop when the metric used for merging has improved by p of the final total improvement. Default to 1 (i.e running the full merging). |
average_n |
Alternatively, you can specify the average number of clusters you want to have. |
n_steps |
Finally, you can specify the number of merging steps to do before stopping. |
If more than one of p
,average_n
and n_steps
is specified,
then the order of preference is n_steps
, then average_n
then p
.
A data.frame with the same dimensions as the currentMat of the merger argument, plus one column with cell names, related to the rownames of the original input
data("clusMat", package = "Dune") merger <- Dune(clusMat = clusMat) head(intermediateMat(merger, n_steps = 1))