easyiec.core.Session#
- class easyiec.core.Session(problem, strategy, evaluator=None, *, budget=None, oracle='auto', goal=None, seed=None, steering=None, callbacks=(), initial=None, name=None)[source]#
Bases:
objectAn interactive evolutionary computation session.
- Parameters:
- problem
Problem - strategy
Strategy - evaluator
Evaluator,optional - budget
Budget,optional - oracle
callable()or “auto” orNone Ground-truth utility
genome → floatrecorded for every new individual (never shown to the strategy)."auto"usesevaluator.true_utilitywhen the evaluator has one (simulated users do).- goal
str,optional Goal text; defaults to
problem.goal.- seed
int,optional - steering
object,optional Converts free-text comments into search directions (
easyiec.evaluators.steering.VerbalSteering); default: keyword steering withproblem.semantic_axeswhen the problem has any;Falsedisables steering.- callbackssequence
ofcallables callback(session, record)after every answered query.- initialsequence
ofgenomes,optional Seed genomes for the first population (presets, a previous session).
- problem
- run(generations=None, *, max_queries=None, verbose=False)[source]#
Run until the budget is exhausted or the evaluator stops; returns a
Result.
- step()[source]#
Ask, let the evaluator answer, tell. Raises
NeedsHumanif a person must answer.