
Last chance! 50% off unlimited learning
Sale ends in
This function provides a partition to a subset of items which has high marginal probability based on samples from a partition distribution using the CHiPS greedy search method (Dahl, Page, Barrientos, 2024).
chips(
x,
threshold = 0,
nRuns = 64,
intermediateResults = TRUE,
allCandidates = FALSE,
nCores = 0
)
If intermediateResults
is FALSE
, an integer vector giving the
estimated subset partition, encoded using cluster labels with -1
indicating not allocated. If TRUE
, a matrix with intermediate subset
partitions in the rows.
A x[b, i] == x[b, j]
.
The minimum marginal probability for the partial partition. Values closer to 1.0 will yield a partition of fewer items and values closer to 0.0 will yield a partition of more items.
The number of runs to try, where the best result is returned.
Should intermediate subset partitions be returned?
Should all the final subset partitions from multiple runs be returned?
The number of CPU cores to use, i.e., the number of simultaneous runs at any given time. A value of zero indicates to use all cores on the system.
# For examples, use 'nCores = 1' per CRAN rules, but in practice omit this.
data(iris.clusterings)
draws <- iris.clusterings
chips(draws, threshold = 0, nRuns = 1)
chips(draws, nCores = 1)
Run the code above in your browser using DataLab