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
def __init__(self, tournament=1): self.tournament = tournament self.lb = nx.Leaderboard(tournament) self.resolution_date = None
def __init__(self): self.lb = nx.Leaderboard()
def __init__(self, tournament=1): self.tournament = tournament self.lb = nx.Leaderboard(tournament)