Пример #1
0
 def cutoff(self, round1, round2, cache_current_round=True):
     "Independent calculation of confidence cutoff"
     crn = nx.get_current_round_number()
     if not cache_current_round:
         if round1 == crn and round2 == crn:
             b = nx.Leaderboard()
             lb = b[crn]
         elif round2 == crn:
             lb = self.lb[round1:round2 - 1]
             b = nx.Leaderboard()
             lb2 = b[crn]
             lb = pd.concat([lb, lb2])
         else:
             lb = self.lb[round1:round2]
     else:
         lb = self.lb[round1:round2]
     df = cutoff(lb)
     return df
Пример #2
0
 def __init__(self, tournament=1):
     self.tournament = tournament
     self.lb = nx.Leaderboard(tournament)
     self.resolution_date = None
Пример #3
0
 def __init__(self):
     self.lb = nx.Leaderboard()
Пример #4
0
 def __init__(self, tournament=1):
     self.tournament = tournament
     self.lb = nx.Leaderboard(tournament)