GridWorld Policy-Difference Artifacts #
A PolicyDiff stores before/after greedy action maps for a fixed GridWorld. These files are small
run artifacts for visualization and regression checks, not a general RL dataset format.
Policy snapshots #
@[implicit_reducible]
Validate a PolicyDiff record (lengths and action ranges).
This is used defensively by IO readers/writers and widgets; it is scoped to IO specification layer for policies.
Instances For
JSON encoding for PolicyDiff.
Instances For
JSON decoding for PolicyDiff.
Instances For
def
Runtime.RL.Artifacts.GridWorld.PolicyDiff.writeJson
(path : System.FilePath)
(p : PolicyDiff)
(pretty : Bool := true)
:
Write a PolicyDiff JSON file to disk (creating parent directories if needed).
Instances For
Read a PolicyDiff from a JSON file.