easyiec.problems.ColorPalette#

class easyiec.problems.ColorPalette[source]#

Bases: Problem

Five-colour palettes previewed on a dashboard card.

Colour 1 is the background, 2 the header band, 3 the text and one series, 4 and 5 the other series and an accent. The card makes legibility and harmony visible at once; objectives() reports WCAG 2.1 contrast ratios (W3C, 2018), the colour spread and the colourfulness.

features(x)[source]#

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

objectives(x)[source]#

Key performance indicators (engineering problems); empty by default.

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.

Examples using easyiec.problems.ColorPalette#

Panels: several evaluators, one decision

Panels: several evaluators, one decision

Design: palettes, chart styles, faces and network drawings

Design: palettes, chart styles, faces and network drawings