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.
DeveloperAPI: This API may change across minor Ray releases.
Methods
Initializes a PiecewiseSchedule instance.
Generates the value given a timestep (based on schedule's logic).