def linear_annealing(current_timestep, final_timestep, start_value, final_value):
    """
    Linearly anneals a value from an initial value to a final value, given the current percentage.
    """
    # Pô <3
    percentage = min(1.0, current_timestep / final_timestep if final_timestep != 0 else 0)
    current_eps = (final_value - start_value) * percentage + final_value - (final_value - start_value)
    return round(current_eps, 4)