safe_diversify | R Documentation |
This function diversifies ABC results to avoid redundancy, with error handling to ensure results are always returned.
safe_diversify(
top_results,
diversity_method = "both",
max_per_group = 5,
min_score = 1e-04,
min_results = 5,
fallback_count = 15,
verbose = TRUE
)
top_results |
The top ABC results to diversify |
diversity_method |
Method for diversification (default: "both") |
max_per_group |
Maximum results per group (default: 5) |
min_score |
Minimum score threshold (default: 0.0001) |
min_results |
Minimum number of desired results (default: 5) |
fallback_count |
Number of top results to use if diversification fails (default: 15) |
verbose |
Logical; if TRUE, print status messages (default: TRUE) |
A data frame of diversified results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.