ray.rllib.utils.schedules.linear_schedule.LinearSchedule#
- class ray.rllib.utils.schedules.linear_schedule.LinearSchedule(**kwargs)[source]#
Bases:
PolynomialSchedule
Linear interpolation between
initial_p
andfinal_p
.Uses
PolynomialSchedule
with power=1.0.The formula is: value =
final_p
+ (initial_p
-final_p
) * (1 -t
/t_max)Methods
Initializes a LinearSchedule instance.
Generates the value given a timestep (based on schedule's logic).