Пример #1
0
 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
Пример #2
0
    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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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
Пример #6
0
 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