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: Evaluator

A user model with a hidden target.

Parameters:
problemProblem
targetgenome, dict, callable(), “random”, “default” or None
  • 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).

noisefloat

Standard deviation of the perceptual noise on the utility scale.

model{“thurstone”, “btl”}

Gaussian (Thurstone case V) or Gumbel (Bradley–Terry–Luce) noise.

fatiguefloat

Relative noise increase per fatigue_scale answered queries: \(\sigma_t=\sigma_0(1+\text{fatigue}\cdot t/\text{fatigue\_scale})\).

lapsefloat

Probability of answering at random.

position_biasfloat

Utility bonus of the first displayed candidate, decreasing linearly to 0 for the last one.

attentionint, optional

Only the first attention displayed candidates are inspected carefully; the others get three times the noise.

shufflebool

Display candidates in random order (positions are recorded).

tie_thresholdfloat

Pairs closer than this (perceived) are declared ties.

rating_compressionfloat

Rating-scale compression towards the middle (0: none, 1: always middle).

driftfloat

Random-walk step of the target genome per query (preference drift).

satisficefloat, optional

Stop the session when a shown candidate reaches this true utility.

edit_probfloat

Probability of editing the top candidate towards the target (requires a genome target; produces Lamarckian edits).

free_kfloat

Fraction chosen in free select queries.

commentsfloat

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_axes and a genome target); a model of verbal feedback for testing steering.

seedint, optional
namestr
true_utility(genome)[source]#

Noise-free utility of a genome (the oracle of benchmarks).