本文整理汇总了Java中es.uam.eps.ir.ranksys.fast.index.FastUserIndex.uidx2user方法的典型用法代码示例。如果您正苦于以下问题:Java FastUserIndex.uidx2user方法的具体用法?Java FastUserIndex.uidx2user怎么用?Java FastUserIndex.uidx2user使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类es.uam.eps.ir.ranksys.fast.index.FastUserIndex
的用法示例。
在下文中一共展示了FastUserIndex.uidx2user方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SimpleFastPreferenceData
import es.uam.eps.ir.ranksys.fast.index.FastUserIndex; //导入方法依赖的package包/类
/**
* Constructor with default IdxPref to IdPref converter.
*
* @param numPreferences number of total preferences
* @param uidxList list of lists of preferences by user index
* @param iidxList list of lists of preferences by item index
* @param uIndex user index
* @param iIndex item index
*/
protected SimpleFastPreferenceData(int numPreferences, List<List<IdxPref>> uidxList, List<List<IdxPref>> iidxList,
FastUserIndex<U> uIndex, FastItemIndex<I> iIndex) {
this(numPreferences, uidxList, iidxList, uIndex, iIndex,
(Function<IdxPref, IdPref<I>> & Serializable) p -> new IdPref<>(iIndex.iidx2item(p)),
(Function<IdxPref, IdPref<U>> & Serializable) p -> new IdPref<>(uIndex.uidx2user(p)));
}
示例2: BinaryCODECPreferenceData
import es.uam.eps.ir.ranksys.fast.index.FastUserIndex; //导入方法依赖的package包/类
/**
* Constructor using streams of user and items preferences lists with default IdxPref to IdPref
* converters.
*
* @param ul stream of user preferences lists
* @param il stream of item preferences lists
* @param users user index
* @param items item index
* @param u_codec user preferences list CODEC
* @param i_codec item preferences list CODEC
*/
public BinaryCODECPreferenceData(Stream<Tuple2io<int[]>> ul, Stream<Tuple2io<int[]>> il,
FastUserIndex<U> users, FastItemIndex<I> items,
CODEC<Cu> u_codec, CODEC<Ci> i_codec) {
this(ul, il, users, items, u_codec, i_codec,
(Function<IdxPref, IdPref<I>> & Serializable) p -> new IdPref<>(items.iidx2item(p)),
(Function<IdxPref, IdPref<U>> & Serializable) p -> new IdPref<>(users.uidx2user(p)));
}
示例3: AbstractCODECPreferenceData
import es.uam.eps.ir.ranksys.fast.index.FastUserIndex; //导入方法依赖的package包/类
/**
* Constructor with default IdxPref to IdPref converters.
*
* @param users user index
* @param items item index
* @param u_codec user preferences CODEC
* @param i_codec item preferences CODEC
*/
@SuppressWarnings("unchecked")
protected AbstractCODECPreferenceData(FastUserIndex<U> users, FastItemIndex<I> items,
CODEC<Cu> u_codec, CODEC<Ci> i_codec) {
this(users, items, u_codec, i_codec,
(Function<IdxPref, IdPref<I>> & Serializable) p -> new IdPref<>(items.iidx2item(p)),
(Function<IdxPref, IdPref<U>> & Serializable) p -> new IdPref<>(users.uidx2user(p)));
}
示例4: RatingCODECPreferenceData
import es.uam.eps.ir.ranksys.fast.index.FastUserIndex; //导入方法依赖的package包/类
/**
* Constructor that utilizes other PreferenceData object with default IdxPref to IdPref
* converters.
*
* @param preferences input preference data to be copied
* @param users user index
* @param items item index
* @param u_codec user preferences list CODEC
* @param i_codec item preferences list CODEC
* @param r_codec ratings CODEC
*/
public RatingCODECPreferenceData(FastPreferenceData<U, I> preferences,
FastUserIndex<U> users, FastItemIndex<I> items,
CODEC<Cu> u_codec, CODEC<Ci> i_codec, CODEC<Cv> r_codec) {
this(preferences, users, items, u_codec, i_codec, r_codec,
(Function<IdxPref, IdPref<I>> & Serializable) p -> new IdPref<>(items.iidx2item(p)),
(Function<IdxPref, IdPref<U>> & Serializable) p -> new IdPref<>(users.uidx2user(p)));
}
示例5: AbstractFastPreferenceData
import es.uam.eps.ir.ranksys.fast.index.FastUserIndex; //导入方法依赖的package包/类
/**
* Constructor.
*
* @param users user index
* @param items item index
*/
public AbstractFastPreferenceData(FastUserIndex<U> users, FastItemIndex<I> items) {
this(users, items,
(Function<IdxPref, IdPref<I>> & Serializable) p -> new IdPref<>(items.iidx2item(p)),
(Function<IdxPref, IdPref<U>> & Serializable) p -> new IdPref<>(users.uidx2user(p)));
}