Skip to contents

This function applies diversity enforcement to ABC model results by:

  1. Removing duplicate paths to the same C term

  2. Ensuring B term diversity by selecting top results from each B term group

  3. Preventing A and C terms from appearing as B terms

Usage

diversify_abc(
  abc_results,
  diversity_method = c("both", "b_term_groups", "unique_c_paths"),
  max_per_group = 3,
  min_score = 0.1
)

Arguments

abc_results

A data frame containing ABC results.

diversity_method

Method for enforcing diversity: "b_term_groups", "unique_c_paths", or "both".

max_per_group

Maximum number of results to keep per B term or C term.

min_score

Minimum score threshold for including connections.

Value

A data frame with diverse ABC results.

Examples

if (FALSE) { # \dontrun{
diverse_results <- diversify_abc(abc_results)
} # }