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

Record and display measured parentage for native MAP-Elites. More...

Go to the source code of this file.

Classes

class  qdpy.lineage.LineageNode
 One archived founder or evaluated proposal and its recorded parents. More...
class  qdpy.lineage.LineageRecorder
 Record actual parents on the coordinator without changing the candidate. More...

Namespaces

namespace  qdpy

Functions

 qdpy.lineage.read_lineage (path)
 Read an ordered lineage log and validate its parent references.
 qdpy.lineage.plot_lineage (source, *, elite=None, highlight_edges=(), ax=None)
 Draw a mutation tree or multi-parent ancestry graph with Matplotlib.

Detailed Description

Record and display measured parentage for native MAP-Elites.

Definition in file lineage.py.

Function Documentation

◆ plot_lineage()

qdpy.lineage.plot_lineage ( source,
* ,
elite = None,
highlight_edges = (),
ax = None )

Draw a mutation tree or multi-parent ancestry graph with Matplotlib.

Plot all recorded nodes, or the ancestors of one proposal ID.

:param source: JSONL path or dictionary returned by ``read_lineage``.
:param elite: Optional selected proposal ID whose ancestors to display.
:param highlight_edges: Parent-child ID pairs to draw in accent color.
:param ax: Optional Matplotlib axes.
:return: The Matplotlib axes used for the plot.

Definition at line 268 of file lineage.py.

◆ read_lineage()

qdpy.lineage.read_lineage ( path)

Read an ordered lineage log and validate its parent references.

Load a JSONL trace as a dictionary keyed by stable proposal ID.

Definition at line 239 of file lineage.py.