| nugget_feature_weights | R Documentation |
Computes a per-feature importance score from a data-nugget
(create_data_nuggets) object built over the observations
(samples). This score is the
data-nugget analogue of the feature variance used by the ABC / M-ABC family:
it rewards features that separate the representative groups while discounting
within-nugget noise, giving a robust, Big-Data-friendly weighting.
nugget_feature_weights(nuggets, type = c("between", "ratio", "inv_scale"))
nuggets |
A |
type |
One of:
|
A named numeric vector of length ncol(centers) of
non-negative feature scores.
Cherasia2023MosaiClusteR
create_data_nuggets, M_ABC
set.seed(1)
x <- cbind(signal = c(rnorm(50, 0), rnorm(50, 5)), # separates groups
noise = rnorm(100)) # pure noise
dn <- create_data_nuggets(x, max_nuggets = 20)
nugget_feature_weights(dn, type = "between")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.