GridWorld Path-Difference Artifacts #
A PathDiff stores before/after episode trajectories for a fixed GridWorld. It uses the shared
position codec and validates that every recorded (row, col) stays inside the declared grid.
Rollout paths #
@[implicit_reducible]
JSON encoding for PathDiff.
Instances For
def
Runtime.RL.Artifacts.GridWorld.PathDiff.writeJson
(path : System.FilePath)
(p : PathDiff)
(pretty : Bool := true)
:
Write a PathDiff JSON file to disk (creating parent directories if needed).
Instances For
Read a PathDiff from a JSON file.