| ABCpp.SingleInMultiple | R Documentation |
The canonical single-source ABC engine of
\insertCiteAmaratunga2008MosaiClusteR. Over numsim iterations it
(optionally) bootstraps the objects, draws a weighted subsample of features,
clusters the sub-matrix with fastcluster::hclust, and records each
selected object's base-cluster label. M_ABC turns the stacked
label matrix into a consensus dissimilarity using the C++ co-clustering
kernel.
ABCpp.SingleInMultiple(
data,
distmeasure = "euclidean",
weighting = "var",
normalize = NULL,
gr = c(),
bag = TRUE,
numsim = 1000,
numvar = 100,
linkage = "ward.D2",
NC = NULL,
mds = FALSE,
nfeat = NULL,
nugget_type = "between",
nugget_args = list()
)
data |
Numeric matrix with objects (samples) in rows and features in columns (the MosaiClusteR convention; transposed internally to the features-by-objects layout of the original engine). |
distmeasure |
Distance measure passed to |
weighting |
|
normalize |
Optional normalisation (see |
gr |
Unused; kept for interface compatibility. |
bag |
Logical; bootstrap the objects each iteration (Step 2). |
numsim |
Number of iterations |
numvar |
Kept for backward compatibility; superseded by |
linkage |
Agglomeration method for |
NC |
Base-cluster count ( |
mds |
Unused placeholder. |
nfeat |
Optional feature-subsample size. |
nugget_type, nugget_args |
Passed to the data-nugget weighting when
|
A data frame, numsim rows by one column per object; entries are
base-cluster labels (0 = object not selected that iteration).
Features are subsampled with probability proportional to a rank-transformed importance score:
"var" – feature variance (the classic ABC choice);
"cv" – coefficient of variation;
"nugget" – NEW: the data-nugget between-group weighted
variance (create_data_nuggets), a robust, Big-Data-friendly
alternative to the raw variance;
anything else – equal weights.
M_ABC, create_data_nuggets
data(mosaic_toy)
lab <- ABCpp.SingleInMultiple(mosaic_toy$List[[1]], numsim = 40, NC = 3,
weighting = "nugget")
dim(lab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.