get_rafs_reps_popcnts {RAFS}R Documentation

Get representatives' popularity counts (popcnts) from RAFS results

Description

This function obtains popularity counts (popcnts) of representatives present at each count of clusters (from n_clusters_range) computed over all runs of RAFS.

Usage

get_rafs_reps_popcnts(rafs_results, n_clusters_range = 2:15)

Arguments

rafs_results

RAFS results as obtained from run_rafs

n_clusters_range

range of clusters number to obtain popcnts for

Details

These results might be fed into further helper functions: get_rafs_top_reps_from_popcnts and get_rafs_all_reps_from_popcnts.

Value

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.

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))
get_rafs_reps_popcnts(rafs_results, 2:5)

[Package RAFS version 0.2.4 Index]