DeadEndClippingTrajectoryProcessor

class maze.core.trajectory_recording.datasets.trajectory_processor.DeadEndClippingTrajectoryProcessor(clip_k: int)

Implementation of the dead-end-clipping preprocessor. That is for each trajectory the last k states should be clipped iff the env is done in the last state.

pre_process(trajectory: maze.core.trajectory_recording.records.trajectory_record.TrajectoryRecord)maze.core.trajectory_recording.records.trajectory_record.TrajectoryRecord

(overrides TrajectoryProcessor)

Implementation of TrajectoryProcessor interface.