ray.rllib.utils.schedules.linear_schedule.LinearSchedule#

class ray.rllib.utils.schedules.linear_schedule.LinearSchedule(**kwargs)[source]#

Bases: PolynomialSchedule

Linear interpolation between initial_p and final_p.

Uses PolynomialSchedule with power=1.0.

The formula is: value = final_p + (initial_p - final_p) * (1 - t/t_max)

Methods

__init__

Initializes a LinearSchedule instance.

value

Generates the value given a timestep (based on schedule's logic).