/****************************** Constructor **********************************/
 public DataLoader(string dbPath) 
 {
     this.dbAdapter = new SQLiteAdapter(dbPath);
     long egoID = long.Parse(Path.GetFileNameWithoutExtension(dbPath));
     egoUser = new User(egoID);
     numOfFriend = 0;
 }
示例#2
0
        /****************************** Constructor **********************************/
        public DataLoader(string dbPath)
        {
            this.dbAdapter = new SQLiteAdapter(dbPath);
            long egoID = long.Parse(Path.GetFileNameWithoutExtension(dbPath));

            egoUser     = new User(egoID);
            numOfFriend = 0;
        }
示例#3
0
 public DataLoader(string dbPath, int nFolds)
 {
     this.egoUserId = long.Parse(Path.GetFileNameWithoutExtension(dbPath));
     this.dbAdapter = new SQLiteAdapter(dbPath);
     this.nFolds = nFolds;
 }