def load_set_user(cls): res = set() file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.fileUserSet) fileFriend = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.fileSocialGraph) res1 = FileTool.ReadFileColumnSet(file) res2 = FileTool.ReadFileColumnSet(fileFriend) res = res2 return res
def load_set_alluser(cls, flagExp=True, flagRatio = True): res = [] if(flagExp): file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.fileUserSet) if(flagRatio == True): file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.folderRatio, Config.fileUserSet) res = FileTool.ReadFileColumnSet(file) return res
def load_set_checkuser(cls, flagExp = True): res = [] if(flagExp): file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.fileFlagCheck + Config.fileUserSet) res = FileTool.ReadFileColumnSet(file) return res
def load_set_userHasCheckin(cls): file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.folderRatio, Config.fileHasCheckin + Config.fileUserSet) res = FileTool.ReadFileColumnSet(file) return res
def load_set_userNotKnowHome(cls): file = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.folderRatio, Config.fileNot + Config.fileKnowHome + Config.fileUserSet) res = FileTool.ReadFileColumnSet(file) return res
def get_exp_ratio_rating_venue_set(self): fileDst = join(Config.folderData, Config.folderDataParsed, Config.folderExp, Config.folderRatio, Config.fileRating) res = FileTool.ReadFileColumnSet(fileDst, '\t', 1) return res