Software
Open-AML-Engine
The Open-AML-Engine is the open-source implementation of Algebraic Machine Learning (AML) released with the 2025 paper on AML. This page describes what the engine contains and where to find it. It does not reproduce the installation steps or the code; those are maintained in the repository.
Last checked against commit 3bd70d7 of the repository (5 November 2025). The repository has no numbered releases.
What it is
The engine is “an open-source Python/C hybrid implementation of Sparse Crossing”, and the code can also compute the Full Crossing algorithm.1 Its repository describes it as an open engine for building models and performing inference.
- Repository: github.com/Algebraic-AI/Open-AML-Engine
- Licence: GNU General Public License, version 3
- Platform: the README states that the current version has been tested on Linux
Design
The engine is a Python package, aml, with a C extension that is compiled at installation.
The reason for the two languages is that researchers can explore and modify the algorithm in Python while keeping the performance of C. A decorator on every computationally intensive function chooses between running the function in Python or in C.1 The published description names the decorator @tryfast. In the repository at the commit checked, the decorator is called runCompiled, and a configuration class lists which functions run in their compiled version.
The package provides two embedders, the engine’s name for the objects that compute a model from a set of duples: one for Full Crossing and one for Sparse Crossing. Embedder is a term of the engine’s interface and is not used on the concept pages of this wiki.
Bundled examples
The repository contains four example programs.
| Example | Task | Related page |
|---|---|---|
example01_PatternRecognition.py | Classification of small black-and-white grids by the presence of vertical bars, with either Full Crossing or Sparse Crossing | The 4×4 image example |
example02_Sudoku.py | Sudoku, from an embedding of the rules, with the embedding in embedding_Sudoku.py | Hamiltonian cycles and Sudoku |
example03_HamiltonianCycles.py | Hamiltonian cycles, with the embedding in embedding_HamiltonianCycles.py | Hamiltonian cycles and Sudoku |
example04_MNIST.py | Classification of the MNIST handwritten digits | MNIST and other image datasets |
The example embeddings for Hamiltonian cycles, Sudoku and MNIST are part of the published description of the engine,1 which refers to the two Sudoku files by name.2
Installation and documentation
Installation is described in the repository’s README. In outline, the engine needs a Python environment with the cffi package, the C extension is compiled with a build script, and the package is then installed from the repository folder. The MNIST example needs the MNIST data files, which are obtained separately.
The README links to the documentation of the engine’s programming interface, the AML Engine API, and to three demonstration notebooks, which are described on the tutorials page.
Citation and funding
The README asks that work done with the engine cite the 2025 paper, arXiv:2502.19944.
The README states that the project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 952091.
References
- Martin-Maroto, Abderrahaman, Méndez and de Polavieja (2025), Algebraic Machine Learning: Learning as computing an algebraic decomposition of a task, arXiv:2502.19944.
- Open-AML-Engine repository: README, licence file and source code, at commit
3bd70d7.