當前位置: 首頁>>代碼示例>>Java>>正文


Java UserEventDAO類代碼示例

本文整理匯總了Java中org.grouplens.lenskit.data.dao.UserEventDAO的典型用法代碼示例。如果您正苦於以下問題:Java UserEventDAO類的具體用法?Java UserEventDAO怎麽用?Java UserEventDAO使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


UserEventDAO類屬於org.grouplens.lenskit.data.dao包,在下文中一共展示了UserEventDAO類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: SimpleItemItemScorer

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Inject
public SimpleItemItemScorer(SimpleItemItemModel m, UserEventDAO dao,
                            @NeighborhoodSize int nnbrs) {
    model = m;
    userEvents = dao;
    neighborhoodSize = nnbrs;
}
 
開發者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,項目名稱:Introd_uction_to_Recom_mander_S_ystem,代碼行數:8,代碼來源:SimpleItemItemScorer.java

示例2: SimpleItemItemScorer

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Inject
public SimpleItemItemScorer(SimpleItemItemModel m, UserEventDAO dao,
		@NeighborhoodSize int nnbrs) {
	model = m;
	userEvents = dao;
	neighborhoodSize = nnbrs;
}
 
開發者ID:paolobarbaglia,項目名稱:coursera_recommender_systems,代碼行數:8,代碼來源:SimpleItemItemScorer.java

示例3: SVDModelBuilder

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
/**
 * Construct the model builder.
 * @param uedao The user event DAO.
 * @param udao The user DAO.
 * @param idao The item DAO.
 * @param baseline The baseline scorer (this will be used to compute means).
 * @param nfeatures The number of latent features to train.
 */
@Inject
public SVDModelBuilder(@Transient UserEventDAO uedao,
                       @Transient UserDAO udao,
                       @Transient ItemDAO idao,
                       @Transient @BaselineScorer ItemScorer baseline,
                       @LatentFeatureCount int nfeatures) {
    logger.debug("user DAO: {}", udao);
    userEventDAO = uedao;
    userDAO = udao;
    itemDAO = idao;
    baselineScorer = baseline;
    featureCount = nfeatures;
}
 
開發者ID:paolobarbaglia,項目名稱:coursera_recommender_systems,代碼行數:22,代碼來源:SVDModelBuilder.java

示例4: get

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Override
public UserEventDAO get() {
    return new PrefetchingUserEventDAO(queryEvents);
}
 
開發者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,項目名稱:Introd_uction_to_Recom_mander_S_ystem,代碼行數:5,代碼來源:QueryDAOProvider.java

示例5: SimpleItemItemModelBuilder

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Inject
public SimpleItemItemModelBuilder(@Transient ItemDAO idao,
                                  @Transient UserEventDAO uedao) {
    itemDao = idao;
    userEventDao = uedao;
}
 
開發者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,項目名稱:Introd_uction_to_Recom_mander_S_ystem,代碼行數:7,代碼來源:SimpleItemItemModelBuilder.java

示例6: SimpleUserUserItemScorer

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Inject
public SimpleUserUserItemScorer(UserEventDAO udao, ItemEventDAO idao) {
    userDao = udao;
    itemDao = idao;
}
 
開發者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,項目名稱:Introd_uction_to_Recom_mander_S_ystem,代碼行數:6,代碼來源:SimpleUserUserItemScorer.java

示例7: SimpleItemItemModelBuilder

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
@Inject
public SimpleItemItemModelBuilder(@Transient ItemDAO idao,
		@Transient UserEventDAO uedao) {
	itemDao = idao;
	userEventDao = uedao;
}
 
開發者ID:paolobarbaglia,項目名稱:coursera_recommender_systems,代碼行數:7,代碼來源:SimpleItemItemModelBuilder.java

示例8: SVDItemScorer

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
/**
 * Construct an SVD item scorer using a model.
 * 
 * @param m
 *            The model to use when generating scores.
 * @param uedao
 *            A DAO to get user rating profiles.
 * @param baseline
 *            The baseline scorer (providing means).
 */
@Inject
public SVDItemScorer(SVDModel m, UserEventDAO uedao,
		@BaselineScorer ItemScorer baseline) {
	model = m;
	baselineScorer = baseline;
	userEvents = uedao;
}
 
開發者ID:paolobarbaglia,項目名稱:coursera_recommender_systems,代碼行數:18,代碼來源:SVDItemScorer.java

示例9: TFIDFItemScorer

import org.grouplens.lenskit.data.dao.UserEventDAO; //導入依賴的package包/類
/**
 * Construct a new item scorer.  LensKit's dependency injector will call this constructor and
 * provide the appropriate parameters.
 *
 * @param dao The user-event DAO, so we can fetch a user's ratings when scoring items for them.
 * @param m   The precomputed model containing the item tag vectors.
 */
@Inject
public TFIDFItemScorer(UserEventDAO dao, TFIDFModel m) {
    this.dao = dao;
    model = m;
}
 
開發者ID:4DD8A19D69F5324F9D49D17EF78BBBCC,項目名稱:Introd_uction_to_Recom_mander_S_ystem,代碼行數:13,代碼來源:TFIDFItemScorer.java


注:本文中的org.grouplens.lenskit.data.dao.UserEventDAO類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。