|
QDpy
|
A frozen snapshot for problem-then-cell sampling and JSONL export. More...
Public Member Functions | |
| entries (self) | |
| sample (self, size, *, rng) | |
| Draw uniform problems followed by uniform occupied cells. | |
| save (self, path) | |
| Write one verified solution per UTF-8 JSONL record. | |
| load (cls, path) | |
| Load and validate a previously exported replay dataset. | |
A frozen snapshot for problem-then-cell sampling and JSONL export.
Replay verified solution text independently of the search or trainer. :param entries: EliteReplayEntry records with unique problem/descriptor pairs.
Definition at line 54 of file elite_replay.py.
| qdpy.algorithms.elite_replay.EliteReplayDataset.entries | ( | self | ) |
Return the immutable replay records in archive order.
Definition at line 75 of file elite_replay.py.
| qdpy.algorithms.elite_replay.EliteReplayDataset.load | ( | cls, | |
| path ) |
Load and validate a previously exported replay dataset.
Read UTF-8 JSONL and validate entries and cell uniqueness.
Definition at line 102 of file elite_replay.py.
| qdpy.algorithms.elite_replay.EliteReplayDataset.sample | ( | self, | |
| size, | |||
| * | , | ||
| rng ) |
Draw uniform problems followed by uniform occupied cells.
Return a tuple of entries sampled with replacement using a NumPy generator.
Definition at line 83 of file elite_replay.py.
| qdpy.algorithms.elite_replay.EliteReplayDataset.save | ( | self, | |
| path ) |
Write one verified solution per UTF-8 JSONL record.
Export problem, descriptor, solution and length fields.
Definition at line 94 of file elite_replay.py.