|
QDpy
|
Durable records for ordered, seeded checkpoint evaluations. More...
Go to the source code of this file.
Classes | |
| class | qdpy.journal._JournalInterrupted |
| class | qdpy.journal._EvaluationJournal |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.journal._read (path) | |
| qdpy.journal.read_evaluation_journal (path) | |
| Inspect recorded results without loading the native checkpoint. | |
| qdpy.journal.export_evaluation_dataset (journal_path, output_path) | |
| Export aligned numeric arrays with evaluator and journal provenance. | |
| qdpy.journal.main (argv=None) | |
| qdpy.journal._measure (evaluate, genome, seed) | |
Durable records for ordered, seeded checkpoint evaluations.
Definition in file journal.py.
|
protected |
Return a numeric response from a worker or a recorded evaluator failure.
Definition at line 156 of file journal.py.
|
protected |
Read complete events; a crash can leave the last line incomplete.
Definition at line 30 of file journal.py.
| qdpy.journal.export_evaluation_dataset | ( | journal_path, | |
| output_path ) |
Export aligned numeric arrays with evaluator and journal provenance.
| journal_path | Source JSON Lines evaluation journal. |
| output_path | Destination for the pickle-free NPZ dataset. |
Write a pickle-free NPZ dataset of successful responses in slot order. Archives contain two-dimensional float arrays named ``genomes``, ``fitness``, and ``descriptors``, with aligned unsigned 64-bit ``evaluation_ids`` and ``seeds``. Repeated genomes get separate rows. Optional named scores use one JSON string per row. The JSON ``metadata`` includes the evaluator key, run ID, coordinator seed, digest of the complete journal prefix, and omitted-call counts. Export after the writer exits to capture the final run dataset.
Definition at line 100 of file journal.py.
| qdpy.journal.main | ( | argv = None | ) |
Export a numeric dataset from one journal.
Definition at line 147 of file journal.py.
| qdpy.journal.read_evaluation_journal | ( | path | ) |
Inspect recorded results without loading the native checkpoint.
Return ordered records and actual returned calls plus dispatch counts. A dispatch without a recorded response is uncertain. A worker may have run that call before the driver lost its response. Such calls are counted as uncertain separately from confirmed success and evaluator failure.
Definition at line 63 of file journal.py.