Ejemplo n.º 1
0
        public Delphi(BookData dataSet, RecommendationType type)
        {
            this.type = type;
            bool useCache = false; // by default don't use cache
            SimilarityMatrixRepository smRepo = new SimilarityMatrixRepository(useCache);

            this.similarityMatrix = smRepo.load(type, dataSet);
            this.dataSet          = dataSet;

            maxPredictedRating = new Dictionary <int, double>(dataSet.getUserCount() / 2);
        }
Ejemplo n.º 2
0
        public Delphi(BookData dataset, RecommendationType type, bool useSimilarityCache)
        {
            Console.WriteLine("Enetring Delphi(Dataset,RecomendationType, bool) constructor...");

            this.type = type;
            SimilarityMatrixRepository smRepo = new SimilarityMatrixRepository(useSimilarityCache);

            this.similarityMatrix = smRepo.load(type, dataset);
            this.dataSet          = dataSet;

            maxPredictedRating = new Dictionary <int, double>(dataSet.getUserCount() / 2);

            Console.WriteLine("Leaving Delphi(Dataset,RecomendationType,boolean) constructor...");
        }