Package | Description |
---|---|
es.uam.eps.ir.ranksys.fast.feature |
Fast versions of FeatureData.
|
es.uam.eps.ir.ranksys.fast.index |
Fast versions of user/item/feature indexes.
|
es.uam.eps.ir.ranksys.nn.neighborhood |
Neighborhoods.
|
org.ranksys.compression.preferences |
Compressed PreferenceData for binary and rating data.
|
org.ranksys.core.util.tuples |
Primitive tuples.
|
org.ranksys.fast.preference |
Fast versions of PreferenceData.
|
org.ranksys.formats.preference |
Write and read format for preferences.
|
Modifier and Type | Method and Description |
---|---|
Stream<Tuple2io<V>> |
FastFeatureData.getFidxItems(int fidx)
Returns the items having a feature.
|
Stream<Tuple2io<V>> |
SimpleFastFeatureData.getFidxItems(int fidx) |
Stream<Tuple2io<V>> |
FastFeatureData.getIidxFeatures(int iidx)
Returns the features associated with an item.
|
Stream<Tuple2io<V>> |
SimpleFastFeatureData.getIidxFeatures(int iidx) |
Constructor and Description |
---|
SimpleFastFeatureData(List<List<Tuple2io<V>>> iidxList,
List<List<Tuple2io<V>>> fidxList,
FastItemIndex<I> ii,
FastFeatureIndex<F> fi)
Constructor.
|
SimpleFastFeatureData(List<List<Tuple2io<V>>> iidxList,
List<List<Tuple2io<V>>> fidxList,
FastItemIndex<I> ii,
FastFeatureIndex<F> fi)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
default <V> Tuple2io<V> |
FastFeatureIndex.feature2fidx(org.jooq.lambda.tuple.Tuple2<F,V> tuple)
Applies FastFeatureIndex::feature2fidx to the first element of the tuple.
|
default <V> Tuple2io<V> |
FastItemIndex.item2iidx(org.jooq.lambda.tuple.Tuple2<I,V> tuple)
Applies FastItemIndex::item2iidx to the first element of the tuple.
|
default <V> Tuple2io<V> |
FastUserIndex.user2uidx(org.jooq.lambda.tuple.Tuple2<U,V> tuple)
Applies FastUserIndex::user2uidx to the first element of the tuple.
|
Modifier and Type | Method and Description |
---|---|
default <V> org.jooq.lambda.tuple.Tuple2<F,V> |
FastFeatureIndex.fidx2feature(Tuple2io<V> tuple)
Applies FastFeatureIndex::fidx2feature to the first element of the tuple.
|
default <V> org.jooq.lambda.tuple.Tuple2<I,V> |
FastItemIndex.iidx2item(Tuple2io<V> tuple)
Applies FastItemIndex::iidx2item to the first element of the tuple.
|
default <V> org.jooq.lambda.tuple.Tuple2<U,V> |
FastUserIndex.uidx2user(Tuple2io<V> tuple)
Applies FastUserIndex::uidx2user to the first element of the tuple.
|
Constructor and Description |
---|
CachedNeighborhood(int n,
Stream<Tuple2io<Stream<Tuple2id>>> neighborhoods)
Constructor that caches a stream of previously calculated neighborhoods.
|
Constructor and Description |
---|
BinaryCODECPreferenceData(Stream<Tuple2io<int[]>> ul,
Stream<Tuple2io<int[]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec)
Constructor using streams of user and items preferences lists with default IdxPref to IdPref
converters.
|
BinaryCODECPreferenceData(Stream<Tuple2io<int[]>> ul,
Stream<Tuple2io<int[]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec)
Constructor using streams of user and items preferences lists with default IdxPref to IdPref
converters.
|
BinaryCODECPreferenceData(Stream<Tuple2io<int[]>> ul,
Stream<Tuple2io<int[]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
Function<IdxPref,IdPref<I>> uPrefFun,
Function<IdxPref,IdPref<U>> iPrefFun)
Constructor using streams of user and items preferences lists with custom IdxPref to IdPref converters.
|
BinaryCODECPreferenceData(Stream<Tuple2io<int[]>> ul,
Stream<Tuple2io<int[]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
Function<IdxPref,IdPref<I>> uPrefFun,
Function<IdxPref,IdPref<U>> iPrefFun)
Constructor using streams of user and items preferences lists with custom IdxPref to IdPref converters.
|
RatingCODECPreferenceData(Stream<Tuple2io<int[][]>> ul,
Stream<Tuple2io<int[][]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
CODEC<Cv> r_codec)
Constructor using streams of user and items preferences lists with default IdxPref to IdPref
converters.
|
RatingCODECPreferenceData(Stream<Tuple2io<int[][]>> ul,
Stream<Tuple2io<int[][]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
CODEC<Cv> r_codec)
Constructor using streams of user and items preferences lists with default IdxPref to IdPref
converters.
|
RatingCODECPreferenceData(Stream<Tuple2io<int[][]>> ul,
Stream<Tuple2io<int[][]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
CODEC<Cv> r_codec,
Function<IdxPref,IdPref<I>> uPrefFun,
Function<IdxPref,IdPref<U>> iPrefFun)
Constructor using streams of user and items preferences lists with custom IdxPref to IdPref
converters.
|
RatingCODECPreferenceData(Stream<Tuple2io<int[][]>> ul,
Stream<Tuple2io<int[][]>> il,
FastUserIndex<U> users,
FastItemIndex<I> items,
CODEC<Cu> u_codec,
CODEC<Ci> i_codec,
CODEC<Cv> r_codec,
Function<IdxPref,IdPref<I>> uPrefFun,
Function<IdxPref,IdPref<U>> iPrefFun)
Constructor using streams of user and items preferences lists with custom IdxPref to IdPref
converters.
|
Modifier and Type | Method and Description |
---|---|
static <T2> Tuple2io<T2> |
Tuples.tuple(int v1,
T2 v2)
Creates a tuple of integer-object.
|
Modifier and Type | Method and Description |
---|---|
int |
Tuple2io.compareTo(Tuple2io<T2> other) |
Constructor and Description |
---|
Tuple2io(Tuple2io<T2> tuple)
Constructor from an integer-object tuple.
|
Modifier and Type | Method and Description |
---|---|
Stream<Tuple2io<? extends IdxPref>> |
FastPreferenceSampler.fastSample()
Get a stream of randomly sample user-item fast preferences.
|
Modifier and Type | Method and Description |
---|---|
Stream<Tuple2io<int[]>> |
CompressibleBinaryPreferencesFormat.read(InputStream in)
Reads an input stream that complies with this format.
|
Stream<Tuple2io<int[][]>> |
CompressibleRatingPreferencesFormat.read(InputStream in)
Reads an input stream that complies with this format.
|
Stream<Tuple2io<int[]>> |
CompressibleBinaryPreferencesFormat.read(String in)
Reads a file that complies with this format.
|
Stream<Tuple2io<int[][]>> |
CompressibleRatingPreferencesFormat.read(String in)
Reads a file that complies with this format.
|
Copyright © 2016. All rights reserved.