Tutorials
References
Other
Interface of TrajectorySlicer.
Methods
Slice trajectory.
This method returns a partial trajectory from t=end_index-size to t=end_index. If end_index-size is smaller than 0, those parts will be padded by zeros.
t=end_index-size
t=end_index
end_index-size
episode (d3rlpy.dataset.components.EpisodeBase) – Episode.
end_index (int) – Index at the end of the sliced trajectory.
size (int) – Length of the sliced trajectory.
Sliced trajectory.
d3rlpy.dataset.components.PartialTrajectory