public static class ItemSelector.GroovyItemSelector extends ItemSelector
Item selector based on a Groovy script.
ItemSelector.GroovyItemSelector, ItemSelector.ItemSelectScript
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
java.lang.String |
toString() |
allItems, compileSelector, fixed, fixed, nullSelector, userTestItems, userTrainItems
public java.lang.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.public java.lang.String toString()
toString
in class java.lang.Object