get_rafs_rep_tuples_popcnts {RAFS}R Documentation

Get representatives' tuples' popularity counts (popcnts) from RAFS results

Description

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

Usage

get_rafs_rep_tuples_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

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 representatives' tuple.

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

[Package RAFS version 0.2.4 Index]