Пример #1
0
        public void CreateClustersAmazon()
        {
            var reader    = new AmazonReader(Paths.AmazonMusicRatings);
            var dataset   = new Dataset <ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 14; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.AmazonMusicUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.AmazonMusicItemsCluster + i + ".csv", i, 5);
            }
        }
Пример #2
0
        public void CreateClustersEpinion()
        {
            var reader    = new EpinionReader(Paths.EpinionRatings);
            var dataset   = new Dataset <ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 2; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.EpinionUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.EpinionItemsCluster + i + ".csv", i, 5);
            }
        }
Пример #3
0
        public void CreateClustersMovieLens()
        {
            var reader    = new MovieLensReader(Paths.MovieLens1M);
            var dataset   = new Dataset <ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 2; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.MovieLens1MUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.MovieLens1MItemsCluster + i + ".csv", i, 5);
            }
        }
Пример #4
0
        public void CreateClustersMovieLens()
        {
            var reader = new MovieLensReader(Paths.MovieLens1M);
            var dataset = new Dataset<ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 2; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.MovieLens1MUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.MovieLens1MItemsCluster + i + ".csv", i, 5);
            }
        }
Пример #5
0
        public void CreateClustersEpinion()
        {
            var reader = new EpinionReader(Paths.EpinionRatings);
            var dataset = new Dataset<ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 2; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.EpinionUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.EpinionItemsCluster + i + ".csv", i, 5);
            }
        }
Пример #6
0
        public void CreateClustersAmazon()
        {
            var reader = new AmazonReader(Paths.AmazonMusicRatings);
            var dataset = new Dataset<ItemRating>(reader);
            var clusterer = new Clusterer(dataset);

            for (int i = 14; i < 15; i += 2)
            {
                clusterer.WriteUsersCluster(Paths.AmazonMusicUsersCluster + i + ".csv", i, 5);
                clusterer.WriteItemsCluster(Paths.AmazonMusicItemsCluster + i + ".csv", i, 5);
            }
        }