本文整理汇总了Java中org.grouplens.lenskit.data.history.History类的典型用法代码示例。如果您正苦于以下问题:Java History类的具体用法?Java History怎么用?Java History使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
History类属于org.grouplens.lenskit.data.history包,在下文中一共展示了History类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getUserRatingVector
import org.grouplens.lenskit.data.history.History; //导入依赖的package包/类
/**
* Get a user's ratings.
* @param user The user ID.
* @return The ratings to retrieve.
*/
private SparseVector getUserRatingVector(long user) {
UserHistory<Rating> history = userEvents.getEventsForUser(user, Rating.class);
if (history == null) {
history = History.forUser(user);
}
return RatingVectorUserHistorySummarizer.makeRatingVector(history);
}
开发者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,项目名称:Introd_uction_to_Recom_mander_S_ystem,代码行数:14,代码来源:SimpleItemItemScorer.java
示例2: getUserRatingVector
import org.grouplens.lenskit.data.history.History; //导入依赖的package包/类
/**
* Get a user's rating vector.
* @param user The user ID.
* @return The rating vector.
*/
private SparseVector getUserRatingVector(long user) {
UserHistory<Rating> history = userDao.getEventsForUser(user, Rating.class);
if (history == null) {
history = History.forUser(user);
}
return RatingVectorUserHistorySummarizer.makeRatingVector(history);
}
开发者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,项目名称:Introd_uction_to_Recom_mander_S_ystem,代码行数:13,代码来源:SimpleUserUserItemScorer.java
示例3: getUserRatingVector
import org.grouplens.lenskit.data.history.History; //导入依赖的package包/类
/**
* Get a user's ratings.
* @param user The user ID.
* @return The ratings to retrieve.
*/
private SparseVector getUserRatingVector(long user) {
UserHistory<Rating> history = userEvents.getEventsForUser(user, Rating.class);
if (history == null) {
history = History.forUser(user);
}
return RatingVectorUserHistorySummarizer.makeRatingVector(history);
}
示例4: getUserRatingVector
import org.grouplens.lenskit.data.history.History; //导入依赖的package包/类
/**
* Get a user's rating vector
* @param user The user ID
* @return The rating vector
*/
private SparseVector getUserRatingVector(long user) {
UserHistory<Rating> history = userDao.getEventsForUser(user, Rating.class);
if (history == null) {
history = History.forUser(user);
}
return RatingVectorUserHistorySummarizer.makeRatingVector(history);
}
示例5: getUserRatingVector
import org.grouplens.lenskit.data.history.History; //导入依赖的package包/类
/**
* Get a user's ratings.
*
* @param user
* The user ID.
* @return The ratings to retrieve.
*/
private SparseVector getUserRatingVector(long user) {
UserHistory<Rating> history = userEvents.getEventsForUser(user,
Rating.class);
if (history == null) {
history = History.forUser(user);
}
return RatingVectorUserHistorySummarizer.makeRatingVector(history);
}