get_rafs_tops_popcnts: Get top popularity counts (popcnts) from FS results

View source: R/main.R

get_rafs_tops_popcntsR Documentation

Get top popularity counts (popcnts) from FS results

Description

This function obtains popularity counts (popcnts) of top variables computed over all runs of FS.

Usage

get_rafs_tops_popcnts(fs_results, n_top_range = 2:15)

Arguments

fs_results

RAFS FS results as obtained from compute_fs_results

n_top_range

range of top 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 number of top variables. The second (and last) level is popcnts per top variable.

Examples

library(MDFS)
mdfs_omp_set_num_threads(1)  # only to pass CRAN checks
data(madelon)
fs_results <- compute_fs_results(madelon$data, madelon$decision, 2, c(12345))
get_rafs_tops_popcnts(fs_results, 2:5)

RAFS documentation built on April 3, 2025, 5:27 p.m.