Description Usage Arguments Value Examples
Given item set, item representation vector, and item ratings, find a subset with better relevance-diversity trade-off.
1 | bestSubset(item_representations, ratings, n)
|
item_representations |
matrix with nrow = num_items and ncol = feature_dim |
ratings |
matrix with nrow = num_items and ncol = 1 |
n |
int. subset size |
dataframe with 2 columns: id & gain
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.