Features
Five languages, one workflow
EvoAl describes every part of a data-science workflow in a small domain-specific language. Each language has a clear task, and the files refer to each other.
| Language | File | Describes |
|---|---|---|
| Data Definition Language | .ddl |
Your data: types, scales, bounds, constraints and correlations. |
| Optimisation Language | .ol |
The problem (what to search, what to optimise) and the configuration of the algorithm. |
| Machine Learning Language | .mll |
The training and validation of surrogate models. |
| Generator Language | .generator |
Pipelines that generate, transform and write data. |
| Definition Language | .dl |
The components of EvoAl and its plugins, with their parameters and requirements. |
A data declaration reads like the description in a paper:
/**
* Month of the year, coded by the ordinal number of the month.
*/
ordinal integer data month
with constraints:
value >= 1;
value <= 12;
;
Checked configurations
Every component of EvoAl declares its parameters with their types and defaults and its requirements in the Definition Language, for example that an operator needs variables of a numeric scale with bounds. EvoAl checks the configuration against these declarations and against your data before the search starts. The editors complete keywords and check the syntax and the references while you type. Plugins declare their components in the same way, so the checks cover them as well.
Optimisers
| Optimiser | Highlights |
|---|---|
| Evolutionary algorithm | Real, integer, bit, Gray-coded and model chromosomes, also mixed in one genotype. SBX, BLX-α, arithmetic, line, uniform and multi-point crossover. Polynomial, Gaussian, creep, bit-flip and random-reset mutation. Tournament, ranking, roulette-wheel, Boltzmann and stochastic universal sampling. (μ + λ) and (μ, λ) replacement with elitism. |
| NSGA-II | Multi-objective optimisation with non-dominated sorting and crowding distance. |
| CMA-ES | Full or diagonal covariance, IPOP and BIPOP restarts. |
| Particle swarm optimisation | Inertia weight, constriction factor, fully informed particle swarm (FIPS), attractive–repulsive PSO, global and ring topologies. |
| Local search | Hill climbing, simulated annealing and threshold accepting with linear, geometric, logarithmic and exponential cooling. |
| Genetic programming | Symbolic regression with ramped half-and-half initialisation, subtree crossover and subtree mutation. |
| Random search | Uniform samples of the search space, the baseline of every comparison. |
All optimisers share the same problem description, stopping criteria and statistics, so comparing two algorithms means changing one block of the configuration. Candidates can be evaluated in parallel threads.
Real-world problems
- Constraints declared with the data and handled by a penalty, the feasibility rules, stochastic ranking or a repair.
- Correlated variables, which correlation-aware operators keep intact.
- Several objectives, compared by Pareto dominance or by a hierarchical order.
- Noisy objectives, for example of simulations or games, evaluated repeatedly or re-evaluated when a candidate survives.
- Structured solutions such as rules, policies or formulas, searched as models of an Ecore metamodel (model-driven optimisation).
Surrogate models
If evaluating a candidate means an expensive simulation or a real experiment, EvoAl learns a surrogate model from data and optimises on the model.
- Models: Gaussian processes with many kernels (Matérn, Gaussian, Laplacian and more), ε-support vector regression, gradient boosting, k-nearest neighbours and linear or quadratic regression. Models of other tools are used in the ONNX format.
- Validation: cross-validation and the bootstrap, with R² and RMSE.
- Surrogate adaption: where the model is uncertain, for example far from its training data, EvoAl changes the fitness of its predictions, so the search does not follow the errors of the model.
Data generation
The Generator Language creates data for training, testing and experiments: samples of 15 statistical distributions, Gaussian copulas for correlated data with any marginal distributions, Sobol’ sequences, rejection sampling, measurement noise and time series. It also estimates the correlations of existing data for the data description.
Benchmarks
EvoAl contains the Ackley, Rastrigin, Rosenbrock, weighted sphere, Forrester and ZDT1 functions. Plugins for the established benchmark suites COCO (BBOB) and CEC 2013 LSGO are in preparation, so that EvoAl’s optimisers can be compared with published results.
Reproducible runs
- Explicit configuration: the configuration names every component and mapping of a run. The defaults of all parameters are declared and documented in the Definition Language.
- Seeds: the same seed gives the same results.
- Provenance: every run stores its configuration files and its environment.
- Literature: every run writes the references of the methods it used as BibTeX.
- Bill of materials: every release contains an SBOM and the licences of all libraries.
Extensible with plugins
EvoAl wires its components at runtime from the configuration. A plugin adds operators, algorithms, fitness functions, surrogate models or writers, and its Definition Language file makes them part of the languages. Users install a plugin by copying it into their EvoAl installation. The plugin template and the developer documentation show how to start.
Data exchange
EvoAl reads and writes CSV, JSON and ARFF (for example from and to WEKA), exchanges surrogate models in the ONNX format and stores searched models as XMI for other EMF tools.