get_rafs_top_rep_tuples_from_popcnts {RAFS} | R Documentation |
Get top (i.e., most common) representatives's tuples from their popcnts
Description
This helper function works on results of get_rafs_rep_tuples_popcnts
to obtain the desired number of top (most common) representatives' tuples at the chosen number of clusters.
Usage
get_rafs_top_rep_tuples_from_popcnts(
rep_tuples_popcnts,
n_clusters,
n_tuples = 1
)
Arguments
rep_tuples_popcnts |
tuples' popcnts for the chosen variant as obtained from |
n_clusters |
the desired number of clusters |
n_tuples |
the desired number of top tuples |
Value
A list of top tuples (each tuple being a vector of representatives).
Examples
library(MDFS)
mdfs_omp_set_num_threads(1) # only to pass CRAN checks
data(madelon)
rafs_results <- run_rafs(madelon$data, madelon$decision, 2, c(12345))
rafs_rep_tuples_popcnts <- get_rafs_rep_tuples_popcnts(rafs_results, 5)
get_rafs_top_rep_tuples_from_popcnts(rafs_rep_tuples_popcnts$stig_single, 5)
[Package RAFS version 0.2.4 Index]