easyiec.core.SessionLog#

class easyiec.core.SessionLog(individuals=<factory>, records=<factory>, events=<factory>, meta=<factory>)[source]#

Bases: object

Complete, serializable history of a session.

Attributes:
individualsdict

{id: Individual} of everything ever created (shown or not).

recordslist of Record

Query–answer pairs in order.

eventslist of dict

Free events (escalations, steering, checkpoints).

curve(x='n_items')[source]#

Best-so-far ground-truth utility of shown individuals vs. effort.

x is "n_items" (individuals shown), "n_queries", "n_decisions" or "step". Requires an oracle (simulated user or Session(oracle=...)); returns empty arrays otherwise.

generations()[source]#

{generation: [ids]} of every individual by creation generation.

individuals_frame()[source]#

One row per individual with genome columns (real-coded genomes).

pairs()[source]#

All pairwise preferences implied by all answers.

to_frame()[source]#

One row per query–answer record (pandas).