public class Filters extends Object
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
static <U,I> Function<U,Predicate<I>> |
all()
False item filter as it admits every item.
|
static <U,I> Function<U,Predicate<I>> |
and(Function<U,Predicate<I>>... filters)
AND of two or more filters.
|
static <U,I> Function<U,Predicate<I>> |
notInTrain(PreferenceData<U,I> trainData)
Item filter that discards items in the training preference data.
|
static <U> Function<U,Predicate<U>> |
notSelf()
For social network recommendations, void a user being recommended to herself.
|
static <U,I,F> Function<U,Predicate<I>> |
withFeatures(FeatureData<I,F,?> featureData)
Item filter that discard items for which no feature data is available.
|
public static <U,I> Function<U,Predicate<I>> all()
U - type of the usersI - type of the itemspublic static <U,I> Function<U,Predicate<I>> notInTrain(PreferenceData<U,I> trainData)
U - type of the usersI - type of the itemstrainData - preference datapublic static <U,I,F> Function<U,Predicate<I>> withFeatures(FeatureData<I,F,?> featureData)
U - type of the usersI - type of the itemsF - type of the featuresfeatureData - feature datapublic static <U> Function<U,Predicate<U>> notSelf()
U - type of the userCopyright © 2016. All rights reserved.