QDpy
Loading...
Searching...
No Matches
qdpy.lineage.LineageRecorder Class Reference

Record actual parents on the coordinator without changing the candidate. More...

Public Member Functions

 attach (self, algorithm)
 Start a fresh trace and register any current archive entries.
 close (self)
 Flush the JSONL stream and detach the observer.
 id_for (self, individual)
 Resolve the identity of a live candidate for ancestry plotting.
 mark_failed (self, individual)
 Close a failed manual ask without admitting a fake measurement.

Protected Member Functions

 _boundary (self)
 _restore (self, state)

Detailed Description

Record actual parents on the coordinator without changing the candidate.

Attach to one supported MAP-Elites optimiser and write a fresh JSONL log.

Use a context manager or call ``close()`` to flush the log and detach.
The recorder tracks live objects with weak references. Use
``record_measurements=True`` to retain fitness and descriptors for
genealogical analysis. A newly attached recorder treats current
archive contents as founders. Genomes are never stored.

Definition at line 36 of file lineage.py.

Member Function Documentation

◆ _boundary()

qdpy.lineage.LineageRecorder._boundary ( self)
protected
Identify the saved trace prefix and stable IDs of the checkpoint's live elites.

Definition at line 134 of file lineage.py.

◆ _restore()

qdpy.lineage.LineageRecorder._restore ( self,
state )
protected
Verify the saved prefix, then discard records following the checkpoint boundary.

Definition at line 142 of file lineage.py.

◆ attach()

qdpy.lineage.LineageRecorder.attach ( self,
algorithm )

Start a fresh trace and register any current archive entries.

Attach to a supported polynomial, Gaussian, Iso+LineDD, or IsoLineCross emitter.

Definition at line 58 of file lineage.py.

◆ close()

qdpy.lineage.LineageRecorder.close ( self)

Flush the JSONL stream and detach the observer.

Close the trace. Pending proposals remain visible in the trace.

Definition at line 104 of file lineage.py.

◆ id_for()

qdpy.lineage.LineageRecorder.id_for ( self,
individual )

Resolve the identity of a live candidate for ancestry plotting.

Return the lineage ID of this live object, or None if it is unknown.

Definition at line 116 of file lineage.py.

◆ mark_failed()

qdpy.lineage.LineageRecorder.mark_failed ( self,
individual )

Close a failed manual ask without admitting a fake measurement.

Record a manually evaluated proposal as failed. Manage its budget externally.

Definition at line 122 of file lineage.py.


The documentation for this class was generated from the following file: