easyiec.evaluators.SimulatedUser#
- class easyiec.evaluators.SimulatedUser(problem, target='random', *, noise=0.05, model='thurstone', fatigue=0.0, fatigue_scale=50.0, lapse=0.0, position_bias=0.0, attention=None, shuffle=False, tie_threshold=0.0, rating_compression=0.0, drift=0.0, satisfice=None, edit_prob=0.0, edit_step=0.3, free_k=0.3333333333333333, comments=0.0, seed=None, name='simulated-user')[source]#
Bases:
EvaluatorA user model with a hidden target.
- Parameters:
- problem
Problem - target
genome,dict,callable(), “random”, “default” orNone genome — the user wants a phenotype similar to this one (
problem.utility(x, target));dict — target values of named phenotype features;
callable —
genome -> utility in [0, 1];"random"— a random genome drawn at construction;the name of one of
problem.presets()— that preset genome;"default"/None— the problem’s own utility (engineering problems with explicit performance criteria).
- noise
float Standard deviation of the perceptual noise on the utility scale.
- model{“thurstone”, “btl”}
Gaussian (Thurstone case V) or Gumbel (Bradley–Terry–Luce) noise.
- fatigue
float Relative noise increase per
fatigue_scaleanswered queries: \(\sigma_t=\sigma_0(1+\text{fatigue}\cdot t/\text{fatigue\_scale})\).- lapse
float Probability of answering at random.
- position_bias
float Utility bonus of the first displayed candidate, decreasing linearly to 0 for the last one.
- attention
int,optional Only the first
attentiondisplayed candidates are inspected carefully; the others get three times the noise.- shufflebool
Display candidates in random order (positions are recorded).
- tie_threshold
float Pairs closer than this (perceived) are declared ties.
- rating_compression
float Rating-scale compression towards the middle (0: none, 1: always middle).
- drift
float Random-walk step of the target genome per query (preference drift).
- satisfice
float,optional Stop the session when a shown candidate reaches this true utility.
- edit_prob
float Probability of editing the top candidate towards the target (requires a genome target; produces Lamarckian edits).
- free_k
float Fraction chosen in free
selectqueries.- comments
float Probability of adding a verbal comment (“much brighter”) that names the semantic axis of the problem best aligned with the direction from the top choice to the target genome (requires
problem.semantic_axesand a genome target); a model of verbal feedback for testing steering.- seed
int,optional - name
str
- problem