当前位置: 首页>>代码示例>>Java>>正文


Java History类代码示例

本文整理汇总了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);
}
 
开发者ID:paolobarbaglia,项目名称:coursera_recommender_systems,代码行数:14,代码来源:SimpleItemItemScorer.java

示例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);
}
 
开发者ID:paolobarbaglia,项目名称:coursera_recommender_systems,代码行数:13,代码来源:SimpleUserUserItemScorer.java

示例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);
}
 
开发者ID:paolobarbaglia,项目名称:coursera_recommender_systems,代码行数:17,代码来源:SVDItemScorer.java


注:本文中的org.grouplens.lenskit.data.history.History类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。