QDpy
Loading...
Searching...
No Matches
_archive_history.py File Reference

Record archive measurements and replay native QDpy results. More...

Go to the source code of this file.

Classes

class  qdpy._archive_history.ArchiveFrame
 A set of archive measurements captured at a search boundary. More...
class  qdpy._archive_history.ArchiveRecorder
 Write plot-ready archive frames during an optimisation. More...

Namespaces

namespace  qdpy

Functions

 qdpy._archive_history.read_archive_history (source, *, trusted_pickle=False)
 Read recorded frames or trusted historical checkpoints in time order.
 qdpy._archive_history._evaluation_frames (source, trusted_pickle)
 qdpy._archive_history.align_archive_histories (histories, *, trusted_pickle=False)
 Align named runs using the latest observed archive at each shared budget.

Detailed Description

Record archive measurements and replay native QDpy results.

Definition in file _archive_history.py.

Function Documentation

◆ _evaluation_frames()

qdpy._archive_history._evaluation_frames ( source,
trusted_pickle )
protected
Coalesce refits at the same budget and check that evaluation counts increase.

Definition at line 248 of file _archive_history.py.

◆ align_archive_histories()

qdpy._archive_history.align_archive_histories ( histories,
* ,
trusted_pickle = False )

Align named runs using the latest observed archive at each shared budget.

Yield aligned frames from a mapping of run label to history source.

The timeline uses the union of recorded budgets within the overlap of
all runs. Each panel shows the latest snapshot at or before the current
budget. Named archives keep their labels with the run name prefixed.

Definition at line 265 of file _archive_history.py.

◆ read_archive_history()

qdpy._archive_history.read_archive_history ( source,
* ,
trusted_pickle = False )

Read recorded frames or trusted historical checkpoints in time order.

Yield archive frames from a file, directory, or explicit sequence.

A directory uses recorded JSON frames when present. Native iteration
pickles follow numeric order and a distinct final checkpoint follows
them. Explicit sequences retain the caller's order.

:param source: History path or sequence of paths or ArchiveFrame objects.
:param trusted_pickle: Allow native Python checkpoints from trusted sources.

Definition at line 224 of file _archive_history.py.