def test_exp_below_min(): """Test exponential decay evaluation function for case where result is below the minimum""" schedule = ExpDecay(init_temp=10, exp_const=0.05, min_temp=1) x = schedule.evaluate(50) assert x == 1
def test_exp_above_min(): """Test exponential decay evaluation function for case where result is above the minimum""" schedule = ExpDecay(init_temp=10, exp_const=0.05, min_temp=1) x = schedule.evaluate(5) assert round(x, 5) == 7.78801