def __init__(self): PairGenerator.__init__(self) # holds comparison pairs the user has already completed self.comparison_pairs = [] self.scored_objects = [] self.rounds = [] # round_objects[round_number] = [ScoredObject] self.round_objects = {}
def _setup_rounds(self, comparison_pairs, scored_objects): # change None value scores to zero for (index, scored_object) in enumerate(scored_objects): if scored_object.score == None: scored_objects[index] = scored_object._replace(score=0) PairGenerator._setup_rounds(self, comparison_pairs, scored_objects)
def __init__(self): PairGenerator.__init__(self)
def __init__(self): PairGenerator.__init__(self) self.criterion_scores = {} self.criterion_weights = {}