ray.rllib.utils.schedules.piecewise_schedule.PiecewiseSchedule#

class ray.rllib.utils.schedules.piecewise_schedule.PiecewiseSchedule(endpoints: ~typing.List[~typing.Tuple[int, float]], framework: str | None = None, interpolation: ~typing.Callable[[numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor, numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor, numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor], numpy.array | jnp.ndarray | tf.Tensor | torch.Tensor] = <function _linear_interpolation>, outside_value: float | None = None)[source]#

Bases: Schedule

Implements a Piecewise Scheduler.

Methods

__init__

Initializes a PiecewiseSchedule instance.

value

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