コード例 #1
0
ファイル: CCMatrix.cs プロジェクト: roryf/Recommendify
 public CCMatrix(Options options, IRedisClient redisClient)
 {
     this.options = options;
     this.redisClient = redisClient;
     Matrix = new SparseMatrix(
             new Options
             {
                 Key = string.Format("{0}:{1}", options.Key, "ccmatrix"),
                 MaxNeighbours = options.MaxNeighbours,
                 RedisPrefix = options.RedisPrefix,
                 Weight = options.Weight
             }, redisClient);
 }
コード例 #2
0
 public JaccardInputMatrix(Options options, IRedisClient redisClient)
     : base(options)
 {
     this.redisClient = redisClient;
     ccmatrix = new CCMatrix(options, redisClient);
 }