Fractals: Julia sets, strange attractors, IFS and flames#

Fractals are the classical playground of interactive evolution (Sims, 1991; Ventrella’s and Draves’ electric sheep): small genomes, endless variety, and a quality — beauty — that only a viewer can judge. easyiec has four families: Julia sets of \(z\mapsto z^2+c\) with smooth colouring, Clifford and de Jong attractors, iterated function systems (Barnsley, 1988) and fractal flames with nonlinear variations (Draves and Reckase, 2003).

Breeding attractors towards a mood#

A simulated viewer whose taste is a set of target image features: bright, colourful and fairly complex.

problem = StrangeAttractor()
user = ei.SimulatedUser(problem, target={"brightness": 0.45, "colorfulness": 0.6, "complexity": 0.7}, noise=0.03,
                        seed=1)
result = ei.run(problem, InteractiveGA(pop_size=9), user, generations=12, seed=1)
ei.viz.plot_history(result.log, problem, steps=[0, 5, 11], size=1.0)
plt.show()
plot 01 fractals

Total running time of the script: (0 minutes 5.834 seconds)

Gallery generated by Sphinx-Gallery