Documentation
Welcome to the documentation of EvoAl. EvoAl is an optimisation framework for researchers and practitioners focusing on usability and correctness. It brings its own implementations of optimisation algorithms, surrogate training, data generation and benchmark functions. EvoAl aims to make all these parts configurable using domain-specific languages, so writing code to adapt them to a domain problem is unnecessary. At the same time, we use knowledge of algorithms to semantically check configurations and warn users when a configuration is not possible due to algorithmic constraints that the used data violates.
The documentation consists of different areas:
Introduction
Optimisation and machine-learning tasks are constant companions in research, nowadays. While various tools and libraries offer possibilities to work with optimisation algorithms and machine learning, there often is either a gap between algorithm development and evaluation or a difficulty for easily making results reproducible, or the combination with constantly changing domain information causes maintainability problems.
With EvoAl, we try to close this gaps and solve these problems by applying ideas from software engineering to the optimisation and machine-learning domain, such as domain-specific languages. EvoAl uses domain-specific languages to describe the domain data, the optimisation problem and the optimisation algorithm configuration and allows execution by providing implementations for many of these algorithms.
Who should use EvoAl?
EvoAl is meant for four groups of users:
- Practitioners from other domains who have an optimisation problem or interesting data. They configure the algorithms, train surrogate models and apply both to their problem in the EvoAl languages, without writing code. The use cases show typical problems with runnable examples.
- Algorithm researchers who develop new optimisation or machine-learning algorithms, or adaptions of existing ones, and want to evaluate them, e.g. against published results on the benchmark suites.
- Researchers who replicate results of other publications. Every run records its EvoAl build, its configuration and its data, and writes the literature of the methods it used (see Provenance of a Run).
- Developers who extend EvoAl with their own algorithms or functions as plugins (see Extending EvoAl).
Why to use EvoAl?
Applicants of ML and Optimisation to optimisation problems
If you are from a non-computer science domain and have an interesting optimisation problem or interesting data, EvoAl allows you to perform ML-analyses and optimisation without any coding knowledge.
Features of EvoAl
EvoAl currently has two different parts: The languages necessary for writing the configuration files to specify the algorithms to and include domain knowledge. The second part is the realisation of the actual algorithms in code (at the moment in Java) which will be adapted according to the configuration files. These realisations can again be divided into three areas at the moment: Optimisation, Machine Learning, and Data Handling.
Optimisation Algorithms
EvoAl currently offers a wide variety of nature-inspired optimisation algorithms. It, however, does not yet include gradient-based optimisation algorithms or algorithms from the area of integer programming/linear programming. Algorithms that EvoAl offers are:
- Random Search
- Hill-Climbing algorithms
- Simulated Annealing (with different temperature decrease functions)
- Threshold Accepting
- Particle Swarm Optimisation (with different movers and neighbourhood topologies)
- Evolutionary Algorithms (with different representations, recombination, mutation, selection, and replacement operators), including NSGA-II for several objectives
- CMA-ES (Covariance Matrix Adaptation Evolution Strategy)
- Genetic Programming
All algorithms run on a shared kernel that counts the evaluations, evaluates in parallel where the algorithm allows it, and records every run in a memory model.
Additionally, the search space can hold models, trees of objects whose classes come from DL types or from Ecore metamodels, which the evolutionary algorithm and genetic programming search.
We plan to extend the list supported algorithms in the future, and whoever wants to contribute, is welcome to do so (have a look at How to contribute at the end of this page).
You can configure optimisation algorithms with the help of .ol-files.
Machine Learning Algorithms
Machine Learning Tasks usually contain three different parts: First, the capability for training, second, the capability of hyperparameter training and thus computing quality measures of the trained models, and third, the capability of using the trained model for predictions. All three are offered by EvoAl. Offered machine learning algorithms (we currently have a focus on regression algorithms, however, classification algorithms can easily be included):
- Support Vector Regression (ε-SVR)
- Linear Regression
- Quadratic Regression
- k-Nearest Neighbours
- Gaussian Processes
- Gradient Boosting with regression trees and a prediction interval
- Models in the ONNX format, also from other tools
We offer the following quality measures and techniques:
- Root mean squared error (RMSE) and root relative squared error (RRSE)
- Coefficient of determination (R²)
- Coverage and width of prediction intervals (PICP, MPIW)
- k-fold cross-validation, leave-one-out cross-validation and the bootstrap
- Surrogate adaption: penalties for predictions where the model is uncertain
You can configure machine-learning pipelines with the help of .mll-files.
Data Handling
Oftentimes, when working with data, different steps of data handling are necessary, e.g., the generation of data, noising of data, transforming of data for scaling, and many more. EvoAl offers different forms of data handling, data transformation or generation capabilities, that can easily be configured or extended for your own needs.
Data generation We offer different statistical distributions to generate data from. Additionally, we offer a variety of benchmark function to compute training data or evaluation data for tests.
- Normal, log-normal, truncated normal, uniform, triangular, beta, exponential, gamma, Weibull and Gaussian mixture distributions
- Bernoulli, binomial, Poisson and categorical distributions for integer data
- Multivariate normal distribution, and copulas that couple any of the distributions above
- Uniform random points and Sobol’ sequences that cover a box evenly
- Several benchmark functions from the randomized search context (Ackley, Rastrigin, Rosenbrock, DeJong)
- The benchmark suites COCO (BBOB) and CEC 2013 LSGO as plugins (see Benchmark Suites)
Data transformation We offer adding noise (with varying distributions), normalising (scaling, and shifting)
Data handling We offer data imports and exports for different formats like .json, .arff, .csv.
Languages
EvoAl’s main principle is the separation of implementation and configuration. The configuration is outsourced to configuration files that are written according to different languages.
The .dl-files are the main vocabulary for all languages and determines what can be used in the other languages.
The .generator are used to configure data handling and transformation tasks. The .mll files are used for specifying and configuring everything from the ML universe. Optimisation files are configured in .ol-files. For specifying domain data information, we use data description language, with .ddl files. You can find more information on grammar and usage here.
How to get started
Running EvoAl describes how to install a release and run its examples, and the use cases list the examples by topic. Depending on your use case, we have different tutorials to get you started. If you are a domain expert, trying to understand how to describe your domain data, you can find help (here). If you primarily want to use existing algorithms and just configure them to your need, you can read further instruction (here). If you need slight adaptions of existing algorithms, you can find information on how to proceed (here). If you want to implement your own algorithms or extend EvoAl to your needs, you can find information on architecture and other aspects (here).
How to contribute
We are always looking for contributors! If you have extended EvoAl for your own needs and think, this might be a nice extension for EvoAl, let us know in the issues, and we are happy to include it. If you want to be a member of our core development team, contact Bernhard, and we will discuss further steps.