Core: spaces, queries, feedback, sessions#

Core data structures of easyiec: spaces, individuals, queries, feedback, problems, sessions.

Search spaces, individuals, the seven feedback protocols, the Problem interface, sessions, budgets and logs.

Classes#

Box(lower, upper[, names, kinds, log, ...])

Axis-aligned box \([\mathbf l,\mathbf u]\) with typed, named genes.

Individual(genome[, id, generation, ...])

A candidate solution shown to an evaluator.

IdFactory([start])

Monotone integer identifiers shared by a strategy and its session.

Query(kind, items[, pairs, n_select, scale, ...])

A request for evaluation.

Feedback(query_id, kind[, evaluator, ...])

An evaluator's answer to a Query.

NeedsHuman(query[, suggestion, reason])

Raised by an evaluator that must hand the query over to a person.

Problem()

Base class of interactive optimization problems.

Session(problem, strategy[, evaluator, ...])

An interactive evolutionary computation session.

Budget([max_generations, max_queries, ...])

Stopping rules of a session (any satisfied rule stops it).

Result(problem, log, best[, population, ...])

Outcome of Session.run().

SessionLog([individuals, records, events, meta])

Complete, serializable history of a session.

Record(query, feedback, step, n_items_cum, ...)

One query–answer exchange.

Functions#

information_bits(query)

Upper bound of the information (bits) one answer to query can carry.

run(problem, strategy, evaluator[, ...])

One-line interactive run: easyiec.run(problem, strategy, evaluator, generations=20).

Constants#

KINDS

Built-in immutable sequence.