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