public static class ItemSelector.GroovyItemSelector extends ItemSelector
Item selector based on a Groovy script.
ItemSelector.GroovyItemSelector, ItemSelector.ItemSelectScript
Modifier and Type | Method and Description |
---|---|
String |
getSource()
Get the Groovy source of this item selector.
|
LongSet |
selectItems(LongSet universe,
Recommender recommender,
TestUser user)
Select a set of items for recommendation.
|
String |
toString() |
allItems, compileSelector, fixed, fixed, nullSelector, userTestItems, userTrainItems
public String getSource()
Get the Groovy source of this item selector.
public LongSet selectItems(LongSet universe, Recommender recommender, TestUser user)
ItemSelector
Select a set of items for recommendation.
selectItems
in class ItemSelector
universe
- The universe of all items.recommender
- The recommender, in case additional information is needed form it.user
- The user being tested.