Exemplo n.º 1
0
        public void Train(UserBehaviorDatabase db)
        {
            UserBehaviorTransformer ubt = new UserBehaviorTransformer(db);

            ratings = ubt.GetUserArticleRatingsTable(rater);

            List <ArticleTagCounts> articleTags = ubt.GetArticleTagCounts();

            ratings.AppendArticleFeatures(articleTags);

            FillTransposedRatings();
        }
        public void Train(UserBehaviorDatabase db)
        {
            UserBehaviorTransformer ubt = new UserBehaviorTransformer(db);

            ratings = ubt.GetUserArticleRatingsTable(rater);

            List <ArticleTagCounts> articleTags = ubt.GetArticleTagCounts();
            //train article
            List <ArticleAndTag> articles1 = ubt.Angualr2();

            ratings.AppendArticleFeatures(articleTags);
            // ratings.suggestArticle(articles1, 3);

            FillTransposedRatings();
        }