easyiec.core.Problem#
- class easyiec.core.Problem[source]#
Bases:
objectBase class of interactive optimization problems.
Subclasses set
spaceand implementrender()and/or_image(); everything else has a sensible default.- Attributes:
- name
str Registry key (
easyiec.problems.make(name)).- title
str Display name.
- domain
str Application area (
"process engineering","image processing","generative art", …).- goal
str Default goal in natural language (shown to people and LLM judges).
- description
str What a candidate looks like; prepended to LLM prompts.
- space
Box Real-coded search space (
Nonefor structured genomes).- image_size
int Default side of rendered images.
- name
- descriptors = ((0, (0.0, 1.0)), (2, (0.0, 1.0)))#
indices of two features spanning a quality-diversity map, with ranges
- feature_names = ['brightness', 'contrast', 'colorfulness', 'saturation', 'hue_x', 'hue_y', 'entropy', 'edge_density', 'symmetry_lr', 'symmetry_ud', 'coverage', 'complexity']#
phenotype descriptor names (default: generic image features)
- modality = 'image'#
modality presented to judges: “image” or “text”
- semantic_axes = {}#
{phrase: direction vector in the unit cube}for verbal steering
- 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.
- utility_width = 0.15#
width of the default target-similarity utility (root-mean-square feature distance)