def getCandScoresMapBruteForce(self, profile):
        """
        Returns a dictonary that associates the integer representation of each candidate with the 
        bayesian losses that we calculate using brute force.

        :ivar Profile profile: A Profile object that represents an election profile.
        """
        
        wmg = profile.getWmg(True)
        losses = dict()
        for cand in wmg.keys():
            losses[cand] = 0.0

        # Calculate the denominator.
        denom = 0.0
        for permutation in itertools.permutations(wmg.keys()):
            denom = denom + self.phi ** float(self.kendallTau(permutation, wmg))

        for permutation in itertools.permutations(wmg.keys()):
            prob = self.phi**float(self.kendallTau(permutation, wmg))/denom
            for cand in wmg.keys():
                losses[cand] += self.utilityFunction.getUtility([cand], permutation)* prob
        return losses