easyiec.problems.CurveMatching#

class easyiec.problems.CurveMatching(n_harmonics=4, seed=0)[source]#

Bases: Problem

Match a hidden target curve; the phenotype is a plotted Fourier series.

Genes are the amplitudes and phases of n_harmonics harmonics. A classic visual IEC benchmark: people (and vision models) judge the shape of curves easily, while the genotype–phenotype map is nonlinear.

features(x)[source]#

Phenotype features in psychological space (default: image features).

render_plot(x, ax)[source]#

Plot-type phenotypes (curves, layouts) draw here; used by _image().

utility(x, target=None)[source]#

Default hidden utility in [0, 1] (ground truth of benchmarks).

With a target genome it is a Gaussian similarity of standardized phenotype features; subclasses with explicit objectives override it.