get_rafs_reps_popcnts | R Documentation |
This function obtains popularity counts (popcnts) of representatives
present at each count of clusters (from n_clusters_range
) computed
over all runs of RAFS.
get_rafs_reps_popcnts(rafs_results, n_clusters_range = 2:15)
rafs_results |
RAFS results as obtained from |
n_clusters_range |
range of clusters number to obtain popcnts for |
These results might be fed into further helper functions:
get_rafs_top_reps_from_popcnts
and get_rafs_all_reps_from_popcnts
.
A nested list
with popcnts.
The first level is per the RAFS variant (combination of feature dissimilarity function and hclust method).
The second level is per the number of clusters.
The third (and last) level is popcnts per representative.
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))
get_rafs_reps_popcnts(rafs_results, 2:5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.