def _accept(self, newscore):
        oldscore = self.stats.current_score

        if newscore >= oldscore:
            return True
        elif random.random() < exp((newscore - oldscore)/self.stats.temp):
            return True
        else:
            return False
dataset/ETHPy150Open abhik/pebl/src/pebl/learner/simanneal.py/SimulatedAnnealingLearner._accept/original